未验证 提交 85c6a12e 编写于 作者: T Tim Neutkens 提交者: GitHub

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
上级 9ae27b20
...@@ -14,8 +14,9 @@ export default class BuildManifestPlugin { ...@@ -14,8 +14,9 @@ export default class BuildManifestPlugin {
const mainJsFiles = mainJsChunk && mainJsChunk.files.length > 0 ? mainJsChunk.files.filter((file) => /\.js$/.test(file)) : [] const mainJsFiles = mainJsChunk && mainJsChunk.files.length > 0 ? mainJsChunk.files.filter((file) => /\.js$/.test(file)) : []
for (const filePath of Object.keys(compilation.assets)) { for (const filePath of Object.keys(compilation.assets)) {
if (/^static\/dll\//.test(filePath)) { const path = filePath.replace(/\\/g, '/')
assetMap.devFiles.push(filePath) if (/^static\/dll\//.test(path)) {
assetMap.devFiles.push(path)
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册