File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,16 @@ class InlineChunkHtmlPlugin {
43
43
assets . headTags = assets . headTags . map ( tagFunction ) ;
44
44
assets . bodyTags = assets . bodyTags . map ( tagFunction ) ;
45
45
} ) ;
46
- hooks . afterEmit . tap ( 'InlineChunkHtmlPlugin' , ( ) => {
47
- Object . keys ( compilation . assets ) . forEach ( assetName => {
48
- if ( this . tests . some ( test => assetName . match ( test ) ) ) {
49
- delete compilation . assets [ assetName ] ;
50
- }
51
- } ) ;
52
- } ) ;
46
+
47
+ // Still emit the runtime chunk for users who do not use our generated
48
+ // index.html file.
49
+ // hooks.afterEmit.tap('InlineChunkHtmlPlugin', () => {
50
+ // Object.keys(compilation.assets).forEach(assetName => {
51
+ // if (this.tests.some(test => assetName.match(test))) {
52
+ // delete compilation.assets[assetName];
53
+ // }
54
+ // });
55
+ // });
53
56
} ) ;
54
57
}
55
58
}
You can’t perform that action at this time.
0 commit comments