Skip to content

Commit 8e517c5

Browse files
committed
fixed minimize bug
1 parent b742264 commit 8e517c5

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

lib/NormalModule.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ NormalModule.prototype.fillLoaderContext = function fillLoaderContext(loaderCont
3939
loaderContext.emitFile = function(name, content) {
4040
this.assets[name] = new RawSource(content);
4141
}.bind(this);
42-
loaderContext.minimize = options.minimize;
42+
loaderContext.minimize = !!options.optimize.minimize;
4343
loaderContext._compilation = compilation;
4444
loaderContext._compiler = compilation.compiler;
4545
};

lib/WebpackOptionsDefaulter.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ function WebpackOptionsDefaulter() {
88
OptionsDefaulter.call(this);
99
this.set("debug", false);
1010
this.set("devtool", false);
11-
this.set("minimize", true);
1211

1312
this.set("context", process.cwd());
1413
this.set("target", "web");

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack",
3-
"version": "0.9.0",
3+
"version": "0.9.1",
44
"author": "Tobias Koppers @sokra",
55
"description": "Packs CommonJs/AMD/Labeled Modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jade, coffee, css, less, ... and your custom stuff.",
66
"dependencies": {

0 commit comments

Comments
 (0)