Skip to content

Commit 05dd98d

Browse files
committed
Fix SvgPrepPlugin
1 parent d7fdabd commit 05dd98d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Parse-Dashboard/public/favicon.ico

-14.7 KB
Binary file not shown.

webpack/plugins/svg-prep.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ function SvgPrepPlugin(options) {
2323
}
2424

2525
SvgPrepPlugin.prototype.apply = function(compiler) {
26-
compiler.hooks.emit.tap('SvgPrepPlugin', compilation => {
26+
compiler.hooks.emit.tapAsync('SvgPrepPlugin', (compilation, callback) => {
2727
if (!this.options.source) {
28-
return;
28+
return callback();
2929
}
3030

3131
// TODO: Keep track of file hashes, so we can avoid recompiling when none have changed
@@ -43,6 +43,8 @@ SvgPrepPlugin.prototype.apply = function(compiler) {
4343
return sprited.length;
4444
}
4545
};
46+
47+
callback();
4648
});
4749
});
4850
}

0 commit comments

Comments
 (0)