!21 feat(vite-config): 添加页面配置文件至重启监听列表

Merge pull request !21 from h_mo/dev
This commit is contained in:
h_mo 2024-06-27 09:25:44 +00:00 committed by Gitee
commit c1e80faef2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -74,7 +74,7 @@ export default defineConfig(async ({ mode }) => {
UnoCSS(), UnoCSS(),
transformClass(), transformClass(),
ViteRestart({ ViteRestart({
restart: ['vite.config.ts'], restart: ['vite.config.ts', 'src/pages.json'],
}), }),
isH5 && isProd isH5 && isProd
&& visualizer({ && visualizer({