From 16c0858e21a3e938bea18cf827445bb38b8bf650 Mon Sep 17 00:00:00 2001 From: JounQin Date: Sun, 15 Jan 2017 12:29:22 +0800 Subject: [PATCH] fix: `minimizeOptions` should be `query.minimize`! 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 --- lib/processCss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/processCss.js b/lib/processCss.js index c6e8d102..60b81360 100644 --- a/lib/processCss.js +++ b/lib/processCss.js @@ -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;