Skip to content

Commit

Permalink
Move OptimizeCssAssetsPlugin from minimizer to plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
christianztamayo committed Jul 27, 2021
1 parent b4cce05 commit 16a2663
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ const config = {
},
extractComments: false,
} ),
new OptimizeCssAssetsPlugin(),
],
},
module: {
Expand Down Expand Up @@ -230,6 +229,8 @@ const config = {
// obsolete and should be removed. Related webpack issue:
// https://github.com/webpack-contrib/mini-css-extract-plugin/issues/85
new FixStyleWebpackPlugin(),
// OptimizeCssAssetsPlugin to minify CSS
new OptimizeCssAssetsPlugin(),
// WP_LIVE_RELOAD_PORT global variable changes port on which live reload
// works when running watch mode.
! isProduction &&
Expand Down

0 comments on commit 16a2663

Please sign in to comment.