mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 05:51:56 +08:00
33 lines
793 B
TypeScript
33 lines
793 B
TypeScript
import reactRefresh from '@vitejs/plugin-react-refresh'
|
|
import tsConfigPath from 'vite-tsconfig-paths'
|
|
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [reactRefresh(), tsConfigPath()],
|
|
optimizeDeps: {
|
|
include: [
|
|
"dayjs/plugin/relativeTime",
|
|
"dayjs/locale/zh-cn"
|
|
]
|
|
},
|
|
css: {
|
|
preprocessorOptions: {
|
|
scss: {
|
|
additionalData: '@import "src/styles/variables.scss";'
|
|
}
|
|
}
|
|
},
|
|
build: {
|
|
base: './',
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks(id) {
|
|
if (id.includes('node_modules')) {
|
|
return 'vendor';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|