Control over CSS & JS minification settings? #30
-
Is it possible to easily customize the minification and optimization settings for JavaScript and CSS in a production build? I'm looking to disable CssMinimizer and/or Terser, or to be able to customize their settings depending on the specific needs of the project. Can this customization be achieved through the configuration in the HtmlBundlerPlugin instance? I have a full configuration running, but it lacks control over minification. (html is working just fine from these docs.) I've been working with the QuickStart configuration to try to get it working. I'm stuck and I appreciate the help, thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @ryanemitchell, the plugin provides no options for CSS & JS minification.
If you use pure CSS without |
Beta Was this translation helpful? Give feedback.
Hello @ryanemitchell,
the plugin provides no options for CSS & JS minification.
sass-loader
which minified CSS in production mode automatically, no CssMinimizer required.If you use pure CSS without
sass-loader
, then you should use the CssMinimizer to minify CSS. This is out of the plugin's control.