mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
fix(cli): incorrect webpack hook
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user