create-react-app-tailwind Tailwind Templates

Create React App Tailwind

React app with tailwind

Create react app with tailwind

Template for using tailwindcss with create-react-app.

Installation

Navigate into the root directory and run.

yarn install

Then start the project by running

yarn start

Usage

Compiling styles

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

Building project

Remember to change purge.enabled to true before building inside of tailwind.config.js.

module.exports = {
  purge: {
    enabled: false, //! Set to true when building for deployment
    [...]
  },
  [...]
};

Build by running the following command

yarn run build

Top categories

Loading Svelte Themes