Skip to content

Commit

Permalink
fix: use new tapable webpack API
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce committed Feb 12, 2019
1 parent eb7f2de commit 0372503
Show file tree
Hide file tree
Showing 2 changed files with 681 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ class NukeCssPlugin {
}

apply(compiler) {
compiler.plugin('this-compilation', compilation => {
compilation.plugin('additional-assets', done => {
compiler.hooks.thisCompilation.tap('NukecssPlugin', compilation => {
compilation.hooks.additionalAssets.tapAsync('NukecssPlugin', done => {
this.onAdditionalAssets(compilation, done)
})
})
Expand Down
Loading

0 comments on commit 0372503

Please sign in to comment.