tailwindlabs / designing-with-tailwindcss

Source code for the "Designing with Tailwind CSS" course.
https://tailwindcss.com/screencasts
713 stars 376 forks source link

Minify CSS issue #18

Open arentsen opened 4 years ago

arentsen commented 4 years ago

In the video I see that you have a minified CSS file and it seems it is created every time you build it with postcss. In the beginning of the video series the css files have many comments and white spaces (like mine). I am unable to find how to get this minified CSS file ANYWHERE on the internet and I did not hear you talk about it either. How do I do this, since my CSS files are almost 2MB! I am designing in Craft CMS which is in dev mode (set in .env file) but I don't think that influences it.

jibize commented 4 years ago

You can use Cssnano https://cssnano.co/guides/getting-started/