Files
kami_frontend/config/vite.config.dev.mts
danial 85a2da5e2f ci: set up continuous integration and delivery pipeline
- Add .drone.yml file to configure CI/CD pipeline
- Set up Docker build and push to private registry
- Add deployment configuration for development and production environments
- Include health check and environment variable support
2025-03-30 22:34:38 +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)
};
};