Template for using tailwindcss with create-react-app.
Navigate into the root directory and run.
yarn install
Then start the project by running
yarn start
The styles will be automatically generated each time you run the project. But if you want to build styles while project is running you can run the following command
yarn run build:styles
Remember to change
purge.enabled
to true before building inside oftailwind.config.js
.
module.exports = {
purge: {
enabled: false, //! Set to true when building for deployment
[...]
},
[...]
};
Build by running the following command
yarn run build