move minimize option to plugin
This commit is contained in:
parent
9959b05319
commit
72f29bf81c
|
@ -47,7 +47,6 @@ NormalModule.prototype.fillLoaderContext = function fillLoaderContext(loaderCont
|
|||
this.assets[name] = new RawSource(content);
|
||||
}
|
||||
}.bind(this);
|
||||
loaderContext.minimize = !!options.optimize.minimize;
|
||||
loaderContext._compilation = compilation;
|
||||
loaderContext._compiler = compilation.compiler;
|
||||
};
|
||||
|
|
|
@ -61,5 +61,8 @@ UglifyJsPlugin.prototype.apply = function(compiler) {
|
|||
});
|
||||
callback();
|
||||
});
|
||||
compilation.plugin("normal-module-loader", function(context) {
|
||||
context.minimize = true;
|
||||
});
|
||||
});
|
||||
};
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "webpack",
|
||||
"version": "0.10.0-beta8",
|
||||
"version": "0.10.0-beta9",
|
||||
"author": "Tobias Koppers @sokra",
|
||||
"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.",
|
||||
"dependencies": {
|
||||
|
|
Loading…
Reference in New Issue