fix(cli): incorrect webpack hook

This commit is contained in:
陈嘉涵 2019-12-05 20:45:42 +08:00
parent 2892fe1c05
commit 560ba33dcc

View File

@ -9,7 +9,7 @@ const PLUGIN_NAME = 'VantCliSitePlugin';
export class VantCliSitePlugin {
apply(compiler: Compiler) {
compiler.hooks.beforeCompile.tapPromise(PLUGIN_NAME, this.genSiteEntry);
compiler.hooks.watchRun.tapPromise(PLUGIN_NAME, this.genSiteEntry);
}
genSiteEntry() {