designing-with-tailwindcss icon indicating copy to clipboard operation
designing-with-tailwindcss copied to clipboard

Minify CSS issue

Open arentsen opened this issue 3 years ago • 1 comments

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.

arentsen avatar Aug 13 '20 00:08 arentsen

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

jibize avatar Aug 23 '20 15:08 jibize