-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable CSS minification (independently of JS) #5619
Comments
Thanks @Niputi but that also turns off javascript minification, alas. If using Terser, there are terser minification options but I don't see anything that relates to my specific issue (disabling the merging of css rules). https://vitejs.dev/config/#build-terseroptions |
|
Is this feature available? I would like to use cssnano as well since it merges style rules better saving bytes. |
This comment was marked as spam.
This comment was marked as spam.
Conversely, we'd like to be able to ensure that CSS emitted from the server build (when using This is problematic because the list of assets is used in things like service workers, which will then cache files that will never be referenced by the application. |
In the recent meeting, we decided to expose a new |
I prefer to use cssnano and would like to be able to turn off just CSS minification.
More specifically, I am using Vite which is built-in to SvelteKit. The current version of esbuild and terser which is packaged with Vite both incorrectly merge rules which shouldn't be merged. Cssnano has it figured out and can manage this case.
Suggested solution
Ideally a new Vite option would expose this ability.
The text was updated successfully, but these errors were encountered: