1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Fix DLL for Windows (#4959)

* Implement autodllplugin

* Add flow-typed for autodll-webpack-plugin

* Improve onClick tests

* Make third test pass

* Make sure DLL bundle is loaded without async

* Add nonce

* Fix windows DLL path
This commit is contained in:
Tim Neutkens 2018-08-15 16:24:56 -07:00 committed by GitHub
parent 9ae27b20b4
commit 85c6a12eb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,8 +14,9 @@ export default class BuildManifestPlugin {
const mainJsFiles = mainJsChunk && mainJsChunk.files.length > 0 ? mainJsChunk.files.filter((file) => /\.js$/.test(file)) : []
for (const filePath of Object.keys(compilation.assets)) {
if (/^static\/dll\//.test(filePath)) {
assetMap.devFiles.push(filePath)
const path = filePath.replace(/\\/g, '/')
if (/^static\/dll\//.test(path)) {
assetMap.devFiles.push(path)
}
}