Skip to content

Commit 4a533ee

Browse files
committed
Upgrade to css-minimize-webpack-plugin 2.0
This upgrades cssnano to version 5, which fixes a bunch of bugs and uses postcss 8 (avoiding to install multiple versions of postcss).
1 parent 58bc358 commit 4a533ee

File tree

3 files changed

+309
-578
lines changed

3 files changed

+309
-578
lines changed

lib/plugins/optimize-css-assets.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ const applyOptionsCallback = require('../utils/apply-options-callback');
1818
* @return {object}
1919
*/
2020
module.exports = function(webpackConfig) {
21-
const minimizerPluginOptions = {
22-
sourceMap: webpackConfig.useSourceMaps
23-
};
21+
const minimizerPluginOptions = {};
2422

2523
return new CssMinimizerPlugin(
2624
applyOptionsCallback(webpackConfig.cssMinimizerPluginOptionsCallback, minimizerPluginOptions)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"chalk": "^4.0.0",
3434
"clean-webpack-plugin": "^3.0.0",
3535
"css-loader": "^5.0.1",
36-
"css-minimizer-webpack-plugin": "^1.1.5",
36+
"css-minimizer-webpack-plugin": "^2.0.0",
3737
"fast-levenshtein": "^3.0.0",
3838
"friendly-errors-webpack-plugin": "^2.0.0-beta.1",
3939
"loader-utils": "^2.0.0",

0 commit comments

Comments
 (0)