fixed minimize bug
This commit is contained in:
parent
b742264a4d
commit
8e517c5c21
|
@ -39,7 +39,7 @@ NormalModule.prototype.fillLoaderContext = function fillLoaderContext(loaderCont
|
|||
loaderContext.emitFile = function(name, content) {
|
||||
this.assets[name] = new RawSource(content);
|
||||
}.bind(this);
|
||||
loaderContext.minimize = options.minimize;
|
||||
loaderContext.minimize = !!options.optimize.minimize;
|
||||
loaderContext._compilation = compilation;
|
||||
loaderContext._compiler = compilation.compiler;
|
||||
};
|
||||
|
|
|
@ -8,7 +8,6 @@ function WebpackOptionsDefaulter() {
|
|||
OptionsDefaulter.call(this);
|
||||
this.set("debug", false);
|
||||
this.set("devtool", false);
|
||||
this.set("minimize", true);
|
||||
|
||||
this.set("context", process.cwd());
|
||||
this.set("target", "web");
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "webpack",
|
||||
"version": "0.9.0",
|
||||
"version": "0.9.1",
|
||||
"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