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:
parent
9ae27b20b4
commit
85c6a12eb5
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue