Files
kami_frontend/config/vite.config.dev.mts
2025-04-27 16:29:44 +08:00

20 lines
492 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import baseConfig from './vite.config.base.mts';
import type { UserConfigExport, ConfigEnv } from 'vite';
export default ({ mode }: ConfigEnv): UserConfigExport => {
return {
mode: 'development',
server: {
open: true,
fs: {
strict: true
},
warmup: {
// 预热的客户端文件首页、views、 components
clientFiles: ['./index.html', './src/{views,components}/*']
}
},
...baseConfig({ mode } as ConfigEnv)
};
};