A quick opionated setup to get you up and running without doing any configuration. This is useful for prototype.
To get started:
- Clone the repository:
git clone https://github.com/peoray/tailwind-boilerplate.git
cd tailwind-boilerplate
-
Install the dependencies:
# npm npm install # yarn yarn install
-
Start up development server
# npm npm run start # yarn yarn run start
The production code is optimized using cssnano.
To run
# npm
npm run prod
# Yarn
yarn run prod
This will create a minify css file in dist/css/main.css
.
You can find an example of a tailwind config file here
MIT