Nuxt/examples/tailwindcss-purgecss
HG c0311bc22f doc: create/update README.mds for examples (#4980)
* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Update Readme.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Create README.md

* Update README.md

* Create README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update examples/with-vuikit/README.md

Co-Authored-By: husayt <husayt@gmail.com>

* Update examples/auth-routes/README.md

Co-Authored-By: husayt <husayt@gmail.com>

* Update examples/middleware/README.md

Co-Authored-By: husayt <husayt@gmail.com>

* Update examples/vuex-store-modules/README.md

Co-Authored-By: husayt <husayt@gmail.com>

* Update examples/with-feathers/README.md

Co-Authored-By: husayt <husayt@gmail.com>

* Update examples/with-element-ui/README.md

Co-Authored-By: husayt <husayt@gmail.com>

* Update examples/with-cookies/README.md

Co-Authored-By: husayt <husayt@gmail.com>

* Update examples/vuex-store/README.md

Co-Authored-By: husayt <husayt@gmail.com>

* Update examples/vuex-persistedstate/README.md

Co-Authored-By: husayt <husayt@gmail.com>

* Update examples/with-firebase/README.md

Co-Authored-By: husayt <husayt@gmail.com>
2019-02-08 15:48:30 +01:00
..
.github chore: tailwind purgecss example (#4214) 2018-11-08 10:37:38 +01:00
assets/css chore: tailwind purgecss example (#4214) 2018-11-08 10:37:38 +01:00
components refactor: use PascalCase for components names (#4396) 2018-11-24 22:19:19 +03:30
layouts refactor: use PascalCase for components names (#4396) 2018-11-24 22:19:19 +03:30
pages refactor: use PascalCase for components names (#4396) 2018-11-24 22:19:19 +03:30
.gitignore chore: tailwind purgecss example (#4214) 2018-11-08 10:37:38 +01:00
nuxt.config.js chore: tailwind purgecss example (#4214) 2018-11-08 10:37:38 +01:00
package.json fix(examples): fix deps on codesandbox (#4828) 2019-01-22 11:04:19 +03:30
postcss.config.js chore: tailwind purgecss example (#4214) 2018-11-08 10:37:38 +01:00
README.md doc: create/update README.mds for examples (#4980) 2019-02-08 15:48:30 +01:00
tailwind.js chore: tailwind purgecss example (#4214) 2018-11-08 10:37:38 +01:00

Nuxt Tailwind CSS + Purgecss

Demo of using Nuxt with Tailwind CSS and Purgecss to drastically reduce CSS size.

Demo

https://nuxt-tailwindcss-purgecss.surge.sh/

demo

Before and after stats

The before CSS bundle came out to 299kb, where as after running it through Purgecss, it dropped to 3kb (granted I'm only using around a dozen classes).

tailwind default tailwind purgecss

Performance

And since the CSS remains inline (due to using Purgecss as a postcss plugin) it scores perfect on Google Page Speed Insights! (This is after running nuxt generate and deploying the dist folder)

pagespeed mobile pagespeed desktop

Other

See also this demo