Skip to content

Commit e1051f1

Browse files
committed
fix(custom): 解决频繁启动报错问题
1 parent fdd58e1 commit e1051f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vite.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ export default ({ command, mode }) => {
1212
const env = loadEnv(mode, path.resolve(process.cwd()))
1313
const { VITE_APP_API_BASEURL, VITE_APP_PROXY, VITE_APP_PROXY_PREFIX } = env
1414
return defineConfig({
15+
build: {
16+
watch: {
17+
exclude: ['node_modules/**', '/__uno.css']
18+
}
19+
},
1520
resolve: {
1621
alias: {
1722
'@': path.join(process.cwd(), './src'),

0 commit comments

Comments
 (0)