Skip to content

Commit

Permalink
Merge pull request #1 from brunocodutra/pr/hook-to-emit
Browse files Browse the repository at this point in the history
Hook to 'emit' instead of 'after-compile'
  • Loading branch information
medfreeman committed Jan 4, 2018
2 parents 0960e7c + 92b25c9 commit d72518e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function IgnoreAssetsPlugin(options) {
}

IgnoreAssetsPlugin.prototype.apply = (compiler) => {
compiler.plugin('after-compile', (compilation, callback) => {
compiler.plugin('emit', (compilation, callback) => {
const compiledAssets = _.keys(compilation.assets);
ignoredAssets.forEach((element) => {
if (_.indexOf(compiledAssets, element) !== -1) {
Expand Down

0 comments on commit d72518e

Please sign in to comment.