perf(theme): improve prepare pages watch (#225)

This commit is contained in:
pengzhanbo 2024-09-27 08:40:40 +08:00 committed by GitHub
parent b2224d33d4
commit 3c5c0272d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,7 @@ export function watchPrepare(
app: App,
watchers: any[],
): void {
const pagesWatcher = watch('pages/**', {
const pagesWatcher = watch('pages/**/*.js', {
cwd: app.dir.temp(),
ignoreInitial: true,
})