Akryum / vue-cli-plugin-ssr

:sparkles: Simple SSR plugin for Vue CLI
https://vue-cli-plugin-ssr.netlify.com/
MIT License
444 stars 69 forks source link

Critial CSS not minifed #37

Open milad-alizadeh opened 5 years ago

milad-alizadeh commented 5 years ago

Could we please have the critical css generated in the style tag minified?

Spittal commented 5 years ago

If it helps I have set up a very simple reproduction repo for this.

https://gitlab.com/Spittal/ssr-repro

I should mention that not only is the CSS not minified, but the comments have not been stripped.

le0l1 commented 5 years ago

you can add cssnano plugin to postcss config

Alik2015 commented 5 years ago

Not a frontend developer. How does one configure css nano.

AlexandreBonaventure commented 5 years ago

For anyone that has this issue see https://github.com/Akryum/vue-cli-plugin-ssr/issues/37#issuecomment-490460449 . Adding cssnano to your postcss config will do the trick