platanus / potassium

A Rails application generator by Platanus, inspired by Suspenders
MIT License
232 stars 17 forks source link

Add PurgeCSS to projects with Tailwind CSS #294

Closed gmq closed 4 years ago

gmq commented 4 years ago

Right now we're including the entirety of Tailwind CSS (78kb gzipped, 603kb uncompressed). They recommend using PurgeCSS to include only the classes that are being used.

https://tailwindcss.com/docs/controlling-file-size#setting-up-purgecss

There may be some difficulty making sure it checks erb and partial files.

rjherrera commented 4 years ago

Closing this because it was addressed in #304