mirror of https://github.com/webpack/webpack.git
some fixes
This commit is contained in:
parent
5f856ec3b3
commit
3b3f6cb0b3
|
|
@ -22,6 +22,7 @@ SetVarMainTemplateDecorator.prototype.render = function(hash, chunk, moduleTempl
|
|||
};
|
||||
SetVarMainTemplateDecorator.prototype.updateHash = function(hash) {
|
||||
hash.update("set var");
|
||||
hash.update(this.varExpression);
|
||||
hash.update(this.varExpression + "");
|
||||
hash.update(this.copyObject + "");
|
||||
this.mainTemplate.updateHash(hash);
|
||||
};
|
||||
|
|
@ -90,6 +90,8 @@ WebpackOptionsApply.prototype.process = function(options, compiler) {
|
|||
new NodeTargetPlugin()
|
||||
);
|
||||
break;
|
||||
default:
|
||||
throw new Error("Unsupported target '" + options.target + "'.");
|
||||
}
|
||||
if(options.output.library || options.output.libraryTarget != "var") {
|
||||
var LibraryTemplatePlugin = require("./LibraryTemplatePlugin");
|
||||
|
|
|
|||
Loading…
Reference in New Issue