mirror of https://github.com/webpack/webpack.git
fixed bugs with DllPlugin
This commit is contained in:
parent
58b9a0428a
commit
131bc08126
|
|
@ -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));
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue