This repository was archived by the owner on Jun 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,13 @@ function ChunkManifestPlugin(options) {
4
4
options = options || { } ;
5
5
this . manifestFilename = options . filename || "manifest.json" ;
6
6
this . manifestVariable = options . manifestVariable || "webpackManifest" ;
7
- this . inlineManifest = options . inlineManifest || false ;
8
7
}
9
8
module . exports = ChunkManifestPlugin ;
10
9
11
10
ChunkManifestPlugin . prototype . constructor = ChunkManifestPlugin ;
12
11
ChunkManifestPlugin . prototype . apply = function ( compiler ) {
13
12
var manifestFilename = this . manifestFilename ;
14
13
var manifestVariable = this . manifestVariable ;
15
- var inlineManifest = this . inlineManifest ;
16
14
var oldChunkFilename ;
17
15
var chunkManifest ;
18
16
@@ -69,20 +67,5 @@ ChunkManifestPlugin.prototype.apply = function(compiler) {
69
67
'window["' + manifestVariable + '"][' + chunkIdVar + "]"
70
68
) ;
71
69
} ) ;
72
-
73
- if ( inlineManifest ) {
74
- compilation . plugin ( "html-webpack-plugin-before-html-generation" , function (
75
- data ,
76
- callback
77
- ) {
78
- var manifestHtml =
79
- "<script>window." +
80
- manifestVariable +
81
- "=" +
82
- JSON . stringify ( chunkManifest ) +
83
- "</script>" ;
84
- callback ( null , ( data . assets [ manifestVariable ] = manifestHtml ) ) ;
85
- } ) ;
86
- }
87
70
} ) ;
88
71
} ;
You can’t perform that action at this time.
0 commit comments