-
-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Description
Documentation Is:
- Missing
- Needed
- Confusing
- Not Sure?
Please Explain in Detail...
I don't think it's a good suggestion to define the webpack configuration as such:
optimization: {
minimize: true,
minimizer: [new CssMinimizerPlugin()],
},
Problem: the default JS minimizer (Terser) will not be invoked anymore and i don't know how to invoke it without installing it explicitly... It goes against common sense to disable a much wanted behavior especially since this plugin is also about minimization.
Your Proposal for Changes
It seems enough to instantiate an object like this:
plugins: [
new CssMinimizerPlugin()
]
Like this you don't need to touch the list of minimizers in the optimization entry and you can still have any other plugin in this list.
Metadata
Metadata
Assignees
Labels
No labels