Skip to content

Commit 16c0858

Browse files
JounQinjoshwiens
authored andcommitted
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
1 parent d7308bc commit 16c0858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/processCss.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ module.exports = function processCss(inputSource, inputMap, options, callback) {
179179
]);
180180

181181
if(minimize) {
182-
var minimizeOptions = assign({}, query);
182+
var minimizeOptions = assign({}, query.minimize);
183183
["zindex", "normalizeUrl", "discardUnused", "mergeIdents", "reduceIdents", "autoprefixer"].forEach(function(name) {
184184
if(typeof minimizeOptions[name] === "undefined")
185185
minimizeOptions[name] = false;

0 commit comments

Comments
 (0)