A:调整构建包数量

This commit is contained in:
jimmy committed 2025-08-18 10:43:02 +08:00
1 parent 2f014df11f
commit ca2361874b
2 files changed
+28 -32

No files matched your search

+7 -31
View File
@@ -48,8 +48,8 @@ importers:
specifier: ^3.5.13
version: 3.5.14(typescript@5.8.3)
vue-echarts:
specifier: ^7.0.3
version: 7.0.3(@vue/runtime-core@3.5.14)(echarts@6.0.0)(vue@3.5.14(typescript@5.8.3))
specifier: 8.0.0-beta.1
version: 8.0.0-beta.1(echarts@6.0.0)(vue@3.5.14(typescript@5.8.3))
vue-router:
specifier: ^4.5.0
version: 4.5.1(vue@3.5.14(typescript@5.8.3))
@@ -2346,26 +2346,11 @@ packages:
vue-component-type-helpers@2.2.10:
resolution: {integrity: sha512-iDUO7uQK+Sab2tYuiP9D1oLujCWlhHELHMgV/cB13cuGbG4qwkLHvtfWb6FzvxrIOPDnU0oHsz2MlQjhYDeaHA==, tarball: https://registry.npmmirror.com/vue-component-type-helpers/-/vue-component-type-helpers-2.2.10.tgz}
vue-demi@0.13.11:
resolution: {integrity: sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A==}
engines: {node: '>=12'}
hasBin: true
vue-echarts@8.0.0-beta.1:
resolution: {integrity: sha512-VKGH87XZ8RPCW8Vse3jT9Rfp1YnqGMnWDnIIbD4nKb9Ajmx3niB+Q7kpwIatLTk1DmeDsKD5j2V3GvYEwZXIfw==}
peerDependencies:
'@vue/composition-api': ^1.0.0-rc.1
vue: ^3.0.0-0 || ^2.6.0
peerDependenciesMeta:
'@vue/composition-api':
optional: true
vue-echarts@7.0.3:
resolution: {integrity: sha512-/jSxNwOsw5+dYAUcwSfkLwKPuzTQ0Cepz1LxCOpj2QcHrrmUa/Ql0eQqMmc1rTPQVrh2JQ29n2dhq75ZcHvRDw==}
peerDependencies:
'@vue/runtime-core': ^3.0.0
echarts: ^5.5.1
vue: ^2.7.0 || ^3.1.1
peerDependenciesMeta:
'@vue/runtime-core':
optional: true
echarts: ^6.0.0
vue: ^3.3.0
vue-eslint-parser@10.1.3:
resolution: {integrity: sha512-dbCBnd2e02dYWsXoqX5yKUZlOt+ExIpq7hmHKPb5ZqKcjf++Eo0hMseFTZMLKThrUk61m+Uv6A2YSBve6ZvuDQ==, tarball: https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-10.1.3.tgz}
@@ -4736,19 +4721,10 @@ snapshots:
vue-component-type-helpers@2.2.10: {}
vue-demi@0.13.11(vue@3.5.14(typescript@5.8.3)):
dependencies:
vue: 3.5.14(typescript@5.8.3)
vue-echarts@7.0.3(@vue/runtime-core@3.5.14)(echarts@6.0.0)(vue@3.5.14(typescript@5.8.3)):
vue-echarts@8.0.0-beta.1(echarts@6.0.0)(vue@3.5.14(typescript@5.8.3)):
dependencies:
echarts: 6.0.0
vue: 3.5.14(typescript@5.8.3)
vue-demi: 0.13.11(vue@3.5.14(typescript@5.8.3))
optionalDependencies:
'@vue/runtime-core': 3.5.14
transitivePeerDependencies:
- '@vue/composition-api'
vue-eslint-parser@10.1.3(eslint@9.27.0(jiti@2.4.2)):
dependencies:
+21 -1
View File
@@ -43,7 +43,27 @@ export default defineConfig(({ mode }) => {
host: "0.0.0.0",
watch: {},
},
build: {},
build: {
// 禁用CSS代码分割,将所有CSS合并到一个文件
cssCodeSplit: false,
// 调整chunk大小警告限制,允许大文件
chunkSizeWarningLimit: 10000,
rollupOptions: {
output: {
// 完全禁用代码分割,所有代码打包到单个文件
manualChunks: () => 'index',
// 简化文件命名
chunkFileNames: '[name].js',
entryFileNames: '[name].js',
assetFileNames: (assetInfo) => {
if (assetInfo.name && assetInfo.name.endsWith('.css')) {
return 'style.css';
}
return '[name].[ext]';
}
}
}
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))