Back to Next Js

Example app with next-sass

examples/with-sass/README.md

16.2.51.1 KB
Original Source

Example app with next-sass

This example demonstrates how to use Next.js' built-in Global Sass/Scss imports and Component-Level Sass/Scss modules support.

Deploy your own

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

bash
npx create-next-app --example with-sass with-sass-app
bash
yarn create next-app --example with-sass with-sass-app
bash
pnpm create next-app --example with-sass with-sass-app

Run production build with:

bash
npm run build
npm run start
# or
yarn build
yarn start
# or
pnpm build
pnpm start

Deploy it to the cloud with Vercel (Documentation).