cmpt-huitu-cli 1.0.17 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -142,7 +142,7 @@ export default defineConfig(({ mode, command }) => {
|
|
|
142
142
|
// }
|
|
143
143
|
// }
|
|
144
144
|
// : {},
|
|
145
|
-
chunkSizeWarningLimit:
|
|
145
|
+
chunkSizeWarningLimit: 1500, // chunk 大小警告的限制(以 kbs 为单位)
|
|
146
146
|
rollupOptions: {
|
|
147
147
|
// 多页面应用配置,通过自动配置
|
|
148
148
|
input: {
|
|
@@ -155,9 +155,13 @@ export default defineConfig(({ mode, command }) => {
|
|
|
155
155
|
chunkFileNames: 'assets/js/[name]-[hash].js',
|
|
156
156
|
assetFileNames: 'assets/[ext]/[name]-[hash].[ext]',
|
|
157
157
|
manualChunks: {
|
|
158
|
-
'
|
|
159
|
-
'
|
|
160
|
-
'
|
|
158
|
+
'vue-vendor': ['vue', 'vue-router', 'pinia'],
|
|
159
|
+
'element-plus': ['element-plus'],
|
|
160
|
+
'element-icons': ['@element-plus/icons-vue'],
|
|
161
|
+
'vxe-table': ['vxe-table', 'xe-utils'],
|
|
162
|
+
'echarts': ['echarts', 'echarts/core', 'echarts/charts', 'echarts/components', 'echarts/renderers'],
|
|
163
|
+
'huitu-ui': ['cmpt-huitu-ui'],
|
|
164
|
+
'utils': ['axios', 'lodash-es', 'cmpt-huitu-utils'],
|
|
161
165
|
},
|
|
162
166
|
experimentalMinChunkSize: 2048, // 该选项用于为代码分割设置一个以字节为单位的最小 chunk 大小
|
|
163
167
|
// inlineDynamicImports: true // 该选项用于内联动态引入,该选项只在单页面应用的时候起作用
|