An example uses a minimum setup for NextJS in combination with Tailwind for styling. You can clone or fork a repository to play around or use it for your needs.
Visit https://nextjs-tailwind-example.now.sh/ for live demo
In the project root directory you can run:
npm run dev
- runs the app in the development mode. Open http://localhost:3000 to view it in the browser.
npm run build
- builds the app for production.
npm start
- serves npm run build
output on the http://localhost:3000
Alternatively to direct dependency on autoprefixer
, you could install and add postcss-preset-env plugin in the postcss.config.js
file.
To remove unused CSS, this example uses Tailwind CSS purge
option.