Skip to content

Commit

Permalink
remove unnecessary minimize option (close #1056)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusBorg authored Nov 14, 2017
1 parent cc53d3e commit 4484b6e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion template/build/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ exports.cssLoaders = function (options) {
const cssLoader = {
loader: 'css-loader',
options: {
minimize: process.env.NODE_ENV === 'production',
sourceMap: options.sourceMap
}
}
Expand Down

1 comment on commit 4484b6e

@maxiong1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why delete css-loader minimize: process.env.NODE_ENV === 'production'.
I know OptimizeCSSPlugin can compress;
but webpack.prod.conf.js new ExtractTextPlugin({ filename: utils.assetsPath('css/[name].[contenthash].css?v=111111')}),
Css packaged without compression did not go heavy

Please sign in to comment.