This is an example of a Webpack 4 setup for using Tailwind CSS. The example app includes hot module replacement, PurgeCSS, Autoprefixer, and more!
To get started, clone the project and install the dependencies:
Install the dependencies
# NPM
npm install
# Yarn
yarn
To build for development
# NPM
npm build:dev
#Yarn
yarn build:dev
To build for production
# NPM
npm build
# Yarn
yarn build
To watch for changes
# NPM
npm run start
# Yarn
yarn start
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes
NOTE: Be sure to merge the latest from "upstream" before making a pull request!
Feel free to submit issues and enhancement requests!
Most of the code from this project was created from forking Tailwindcss/webpack-starter and azdanov/tailwind-starter.