Very simple boilerplate for tailwind css
The goal of this boilerplate is to provide a go-to template to start develop html with tailwind.
- Provide easiest way to start
- Provide the obvious way to change config
- Provide way to easily recompile css after change tailwind config
- Purge and minify CSS for production
-
Run
npm install
-
Run
npm run init
.
Now you can start edit your HTML. Just in case you need instant web server, just run npm run start
and visit http://localhost:8080.
if you modify tailwind.config.js
npm run refresh
to remove unused class from style.css and minify it
npm run build
.
This will create style.min.js
and now you can refer from your HTML files instead of style.css
~vrql