mager: 合并11.2版本

This commit is contained in:
TsMask
2024-11-23 10:57:55 +08:00
parent 63d7d11350
commit 2fb3467fb5
237 changed files with 206505 additions and 11666 deletions

View File

@@ -20,7 +20,7 @@ export default defineConfig(({ mode }) => {
proxy: {
// https://cn.vitejs.dev/config/#server-proxy
[env.VITE_API_BASE_URL]: {
// target: 'http://192.168.2.166:3030',
// target: 'http://192.168.2.166:33030',
target: 'http://192.168.5.58:33040',
changeOrigin: true,
rewrite: p => p.replace(env.VITE_API_BASE_URL, ''),
@@ -41,19 +41,8 @@ export default defineConfig(({ mode }) => {
},
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
},
css: {
preprocessorOptions: {
less: {
// DO NOT REMOVE THIS LINE
javascriptEnabled: true,
modifyVars: {
// hack: `true; @import 'ant-design-vue/dist/antd.variable.less'`,
// '@primary-color': '#eb2f96', // 全局主色
},
},
},
},
build: {
target: 'esnext', // Use 'esnext' to support the latest features
sourcemap: false,
chunkSizeWarningLimit: 500, // 调整区块大小警告限制以kB为单位
rollupOptions: {
@@ -74,6 +63,11 @@ export default defineConfig(({ mode }) => {
},
},
optimizeDeps: {
esbuildOptions: {
supported: {
'top-level-await': true,
},
},
include: ['@ant-design/icons-vue', 'ant-design-vue'],
},
plugins: [
@@ -88,7 +82,7 @@ export default defineConfig(({ mode }) => {
AntDesignVueResolver({
importStyle: false,
resolveIcons: true,
cjs: true, // 避免es模块打包缺失
cjs: false, // 统一使用es模块打包
}),
],
}),