A lightweight boilerplate to get up and running with Tailwind CSS, TypeScript, Eslint w/ Airbnb config and Prettier set up with Next.js.
You can generate your own repo from this template by using this link.
You can also clone this repository by using the command line:
git clone https://github.com/vinhvn/next-tailwind-typescript-eslint-airbnb-prettier-starter app
cd app
yarn # npm i
Remember to install dependencies after cloning it locally.
yarn dev # npm run dev
The stage
script will build and start a production server.
yarn stage # npm run stage
Alternatively you can run:
yarn build # npm run build
yarn start # npm start
- Be sure to update the
package.json
to include your own information for the project you're working on. - Purge CSS will only run in production, so use either
build
orstage
to run it and minimize your CSS file size. You can also modify thepostcss.config.js
file to enable Purge CSS in development.
Thank you to kyrelldixon and their amazing starter that I used as a template.