mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-26 00:09:15 +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 {
|
export class VantCliSitePlugin {
|
||||||
apply(compiler: Compiler) {
|
apply(compiler: Compiler) {
|
||||||
compiler.hooks.beforeCompile.tapPromise(PLUGIN_NAME, this.genSiteEntry);
|
compiler.hooks.watchRun.tapPromise(PLUGIN_NAME, this.genSiteEntry);
|
||||||
}
|
}
|
||||||
|
|
||||||
genSiteEntry() {
|
genSiteEntry() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user