Skip to content

Commit 17c7f08

Browse files
authored
Merge pull request #26 from 1337programming/feature/after-emit
After-Emit
2 parents 4d50f6a + 3b6e2f6 commit 17c7f08

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ var WebpackShellPlugin = function () {
247247
}
248248
});
249249

250-
compiler.plugin('emit', function (compilation, callback) {
250+
compiler.plugin('after-emit', function (compilation, callback) {
251251
if (_this.options.onBuildEnd.length) {
252252
console.log('Executing post-build scripts');
253253
for (var i = 0; i < _this.options.onBuildEnd.length; i++) {
@@ -273,4 +273,4 @@ var WebpackShellPlugin = function () {
273273
return WebpackShellPlugin;
274274
}();
275275

276-
module.exports = WebpackShellPlugin;
276+
module.exports = WebpackShellPlugin;

src/webpack-shell-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default class WebpackShellPlugin {
8585
}
8686
});
8787

88-
compiler.plugin('emit', (compilation, callback) => {
88+
compiler.plugin('after-emit', (compilation, callback) => {
8989
if (this.options.onBuildEnd.length) {
9090
console.log('Executing post-build scripts');
9191
for (let i = 0; i < this.options.onBuildEnd.length; i++) {

0 commit comments

Comments
 (0)