fixed minimize bug

This commit is contained in:
Tobias Koppers 2013-03-13 11:37:28 +01:00
parent b742264a4d
commit 8e517c5c21
3 changed files with 2 additions and 3 deletions

View File

@ -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;
};

View File

@ -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");

View File

@ -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": {