Skip to content

Commit

Permalink
fix: minimizeOptions should be query.minimize!
Browse files Browse the repository at this point in the history
It's a mistake according to the doc.

Init `minimizeOptions` should be `query.minimize` rather than just query.

https://github.com/webpack/css-loader#minification
  • Loading branch information
JounQin authored and joshwiens committed Mar 9, 2017
1 parent d7308bc commit 16c0858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/processCss.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ module.exports = function processCss(inputSource, inputMap, options, callback) {
]);

if(minimize) {
var minimizeOptions = assign({}, query);
var minimizeOptions = assign({}, query.minimize);
["zindex", "normalizeUrl", "discardUnused", "mergeIdents", "reduceIdents", "autoprefixer"].forEach(function(name) {
if(typeof minimizeOptions[name] === "undefined")
minimizeOptions[name] = false;
Expand Down

0 comments on commit 16c0858

Please sign in to comment.