fix problems with dll

This commit is contained in:
Pooya Parsa 2017-08-22 00:10:06 +04:30
parent eb872518b2
commit 0795d40bb7
2 changed files with 9 additions and 2 deletions

View File

@ -81,7 +81,12 @@ export default class Builder extends Tapable {
const vendor = this.vendor()
const vendorEntries = {}
vendor.forEach(v => {
vendorEntries[v] = [ v ]
try {
require.resolve(v)
vendorEntries[v] = [ v ]
} catch (e) {
// Ignore
}
})
return vendorEntries
}

View File

@ -174,7 +174,9 @@ export default function webpackClientConfig () {
)
}
})
debug('[DLL] ' + _dlls.join(','))
if (_dlls.length) {
debug('Using dll for ' + _dlls.join(','))
}
}
}