Skip to content

Commit 72f29bf

Browse files
committed
move minimize option to plugin
1 parent 9959b05 commit 72f29bf

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

lib/NormalModule.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ NormalModule.prototype.fillLoaderContext = function fillLoaderContext(loaderCont
4747
this.assets[name] = new RawSource(content);
4848
}
4949
}.bind(this);
50-
loaderContext.minimize = !!options.optimize.minimize;
5150
loaderContext._compilation = compilation;
5251
loaderContext._compiler = compilation.compiler;
5352
};

lib/optimize/UglifyJsPlugin.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,8 @@ UglifyJsPlugin.prototype.apply = function(compiler) {
6161
});
6262
callback();
6363
});
64+
compilation.plugin("normal-module-loader", function(context) {
65+
context.minimize = true;
66+
});
6467
});
6568
};

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.10.0-beta8",
3+
"version": "0.10.0-beta9",
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)