fixed bugs with DllPlugin

This commit is contained in:
Tobias Koppers 2016-01-30 11:43:22 +01:00
parent 58b9a0428a
commit 131bc08126
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ DllPlugin.prototype.apply = function(compiler) {
else
throw new Error("DllPlugin: supply an Array as entry");
}
if(typeof entry === "object") {
if(typeof entry === "object" && !Array.isArray(entry)) {
Object.keys(entry).forEach(function(name) {
compiler.apply(itemToPlugin(entry[name], name));
});

View File

@ -20,7 +20,7 @@ LibManifestPlugin.prototype.apply = function(compiler) {
hash: compilation.hash,
chunk: chunk
});
var name = compilation.getPath(this.options.name, {
var name = this.options.name && compilation.getPath(this.options.name, {
hash: compilation.hash,
chunk: chunk
});