You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use of clean-css is hardcoded in 'buildPluginCss.js' for level-2 minification of the css in production build. Currently these optimizations are changing the semantics of my style sheet. I've submitted a bug report here:
There currently exists no way (that I could find) to configure this apart from disabling minification for the whole project including javascript etc.
Would it be possible to move this minification step outside of the vite code and into the postcss configuration? Or alternatively get some finer grained control via the vite config?
Regards,
Marius
The text was updated successfully, but these errors were encountered:
I have a similar issue with a base64 encoded font. The encoded string contains // and the minification fails because of it. I also have my own CSS minification done with cssnano; I don't need any other library doing extra minification. Seeing as Vite 2.0 is now framework agnostic, it doesn't make sense for any coupled build tools to be hardcoded without the ability to configure them for your own environment. I imagine it's just an oversight that this particular tool can't be configured.
The use of clean-css is hardcoded in 'buildPluginCss.js' for level-2 minification of the css in production build. Currently these optimizations are changing the semantics of my style sheet. I've submitted a bug report here:
clean-css/clean-css#1128
There currently exists no way (that I could find) to configure this apart from disabling minification for the whole project including javascript etc.
Would it be possible to move this minification step outside of the vite code and into the postcss configuration? Or alternatively get some finer grained control via the vite config?
Regards,
Marius
The text was updated successfully, but these errors were encountered: