mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-08-10 00:33:28 +08:00
⚡️ perf(build): 启用生产依赖分块配置
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import react from '@vitejs/plugin-react';
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
test: {
|
||||
setupFiles: ['./src/test/setupI18nCatalogs.ts'],
|
||||
},
|
||||
optimizeDeps: {
|
||||
// Pre-bundle startup locale modules before Wails starts proxying the WebView.
|
||||
include: [
|
||||
'antd/locale/de_DE',
|
||||
'antd/locale/en_US',
|
||||
'antd/locale/ja_JP',
|
||||
'antd/locale/ru_RU',
|
||||
'antd/locale/zh_CN',
|
||||
'antd/locale/zh_TW',
|
||||
'dayjs/locale/de',
|
||||
'dayjs/locale/ja',
|
||||
'dayjs/locale/ru',
|
||||
'dayjs/locale/zh-cn',
|
||||
'dayjs/locale/zh-tw',
|
||||
],
|
||||
},
|
||||
server: {
|
||||
host: '127.0.0.1',
|
||||
port: 5173,
|
||||
strictPort: true,
|
||||
},
|
||||
build: {
|
||||
outDir: 'dist', // Standard Wails output directory
|
||||
emptyOutDir: true,
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user