Skip to content

Commit 00c6843

Browse files
committed
Add inlineManifest option
1 parent 16d2ad2 commit 00c6843

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/ChunkManifestPlugin.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ 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;
78
}
89
module.exports = ChunkManifestPlugin;
910

1011
ChunkManifestPlugin.prototype.constructor = ChunkManifestPlugin;
1112
ChunkManifestPlugin.prototype.apply = function(compiler) {
1213
var manifestFilename = this.manifestFilename;
1314
var manifestVariable = this.manifestVariable;
15+
var inlineManifest = this.inlineManifest;
1416
var oldChunkFilename;
1517

1618
compiler.plugin("this-compilation", function(compilation) {
@@ -52,5 +54,8 @@ ChunkManifestPlugin.prototype.apply = function(compiler) {
5254
return _.replace("\"__CHUNK_MANIFEST__\"",
5355
"window[\"" + manifestVariable + "\"][" + chunkIdVar + "]");
5456
});
57+
58+
if (inlineManifest){
59+
}
5560
});
5661
};

0 commit comments

Comments
 (0)