Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

Commit 151e65d

Browse files
committed
Removed redundant chunk manifest inlining
1 parent 781b763 commit 151e65d

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/chunk-manifest-webpack-plugin.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ function ChunkManifestPlugin(options) {
44
options = options || {};
55
this.manifestFilename = options.filename || "manifest.json";
66
this.manifestVariable = options.manifestVariable || "webpackManifest";
7-
this.inlineManifest = options.inlineManifest || false;
87
}
98
module.exports = ChunkManifestPlugin;
109

1110
ChunkManifestPlugin.prototype.constructor = ChunkManifestPlugin;
1211
ChunkManifestPlugin.prototype.apply = function(compiler) {
1312
var manifestFilename = this.manifestFilename;
1413
var manifestVariable = this.manifestVariable;
15-
var inlineManifest = this.inlineManifest;
1614
var oldChunkFilename;
1715
var chunkManifest;
1816

@@ -69,20 +67,5 @@ ChunkManifestPlugin.prototype.apply = function(compiler) {
6967
'window["' + manifestVariable + '"][' + chunkIdVar + "]"
7068
);
7169
});
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-
}
8770
});
8871
};

0 commit comments

Comments
 (0)