mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-25 15:59:16 +08:00
fix(cli): incorrect webpack hook
This commit is contained in:
parent
2892fe1c05
commit
560ba33dcc
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user