diff --git a/lib/index.js b/lib/index.js index e182b74..2d6c5ea 100644 --- a/lib/index.js +++ b/lib/index.js @@ -19,7 +19,7 @@ module.exports = class HandlebarsPrecompile { } apply(compiler) { - compiler.plugin('run', (compilation, cb) => { + compiler.hooks.run.tapAsync('WebpackHandlebarsPrecompilePlugin', (compiler, cb) => { this._cb = cb; const {templatesPath, templatesExt, precompileOpts} = this._options;