Unverified Commit 789933c0 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub
Browse files

Still emit runtime chunk (#5184)

parent 02b8c355
3 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file
Showing with 10 additions and 7 deletions
+10 -7
...@@ -43,13 +43,16 @@ class InlineChunkHtmlPlugin { ...@@ -43,13 +43,16 @@ class InlineChunkHtmlPlugin {
assets.headTags = assets.headTags.map(tagFunction); assets.headTags = assets.headTags.map(tagFunction);
assets.bodyTags = assets.bodyTags.map(tagFunction); assets.bodyTags = assets.bodyTags.map(tagFunction);
}); });
hooks.afterEmit.tap('InlineChunkHtmlPlugin', () => {
Object.keys(compilation.assets).forEach(assetName => { // Still emit the runtime chunk for users who do not use our generated
if (this.tests.some(test => assetName.match(test))) { // index.html file.
delete compilation.assets[assetName]; // hooks.afterEmit.tap('InlineChunkHtmlPlugin', () => {
} // Object.keys(compilation.assets).forEach(assetName => {
}); // if (this.tests.some(test => assetName.match(test))) {
}); // delete compilation.assets[assetName];
// }
// });
// });
}); });
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment