We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc7460f commit 99bbbebCopy full SHA for 99bbbeb
1 file changed
lib/LibManifestPlugin.js
@@ -13,7 +13,7 @@ class LibManifestPlugin {
13
}
14
15
apply(compiler) {
16
- compiler.plugin("emit", (compilation, callback) => {
+ compiler.hooks.emit.tapAsync("LibManifestPlugin", (compilation, callback) => {
17
asyncLib.forEach(compilation.chunks, (chunk, callback) => {
18
if(!chunk.isInitial()) {
19
callback();
@@ -51,7 +51,7 @@ class LibManifestPlugin {
51
return obj;
52
}, Object.create(null))
53
};
54
- const content = new Buffer(JSON.stringify(manifest), "utf8"); //eslint-disable-line
+ const content = new Buffer.from(JSON.stringify(manifest), "utf8");
55
compiler.outputFileSystem.mkdirp(path.dirname(targetPath), err => {
56
if(err) return callback(err);
57
compiler.outputFileSystem.writeFile(targetPath, content, callback);
0 commit comments