Skip to content

Commit

Permalink
Finish: support webpack4
Browse files Browse the repository at this point in the history
  • Loading branch information
leftstick committed Mar 6, 2018
1 parent 8b2a839 commit d31d0b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ function ngAnnotatePlugin(options) {
ngAnnotatePlugin.prototype.apply = function apply(compiler) {
var options = this.options;

compiler.plugin('compilation', function(compilation) {
compilation.plugin('optimize-chunk-assets', function(chunks, callback) {
compiler.hooks.compilation.tap('NoAnnotateWebpackPlugin', function(compilation) {
compilation.hooks.optimizeChunkAssets.tapAsync('NoAnnotateWebpackPlugin', function(chunks, callback) {
var files = [];

function getFilesFromChunk(chunk) {
Expand Down

0 comments on commit d31d0b5

Please sign in to comment.