Browse Source

chore: prepare v2.1.7

Jacky 3 days ago
parent
commit
42170f5ef3
3 changed files with 23 additions and 5 deletions
  1. 1 1
      app/package.json
  2. 1 1
      app/src/version.json
  3. 21 3
      app/vite.config.ts

+ 1 - 1
app/package.json

@@ -1,7 +1,7 @@
 {
   "name": "nginx-ui-app-next",
   "type": "module",
-  "version": "2.1.6",
+  "version": "2.1.7",
   "packageManager": "pnpm@10.12.2+sha512.a32540185b964ee30bb4e979e405adc6af59226b438ee4cc19f9e8773667a66d302f5bfee60a39d3cac69e35e4b96e708a71dd002b7e9359c4112a1722ac323f",
   "scripts": {
     "dev": "vite --host",

+ 1 - 1
app/src/version.json

@@ -1 +1 @@
-{"version":"2.1.6","build_id":4,"total_build":437}
+{"version":"2.1.7","build_id":3,"total_build":440}

+ 21 - 3
app/vite.config.ts

@@ -89,11 +89,29 @@ export default defineConfig(({ mode }) => {
       },
     },
     build: {
-      chunkSizeWarningLimit: 1000,
+      chunkSizeWarningLimit: 1500,
       rollupOptions: {
         output: {
-          manualChunks: {
-            'ace-editor': ['ace-builds'],
+          advancedChunks: {
+            groups: [
+              // Code editors
+              { name: 'ace-editor', test: /ace-builds/ },
+
+              // Vue ecosystem
+              { name: 'vue-vendor', test: /[\\/]node_modules[\\/](vue|@vue|vue-router|pinia)[\\/]/ },
+
+              // Ant Design Vue
+              { name: 'antdv', test: /[\\/]node_modules[\\/]ant-design-vue[\\/]/ },
+
+              // Chart libraries
+              { name: 'charts', test: /[\\/]node_modules[\\/](echarts|@antv|chart\.js)[\\/]/ },
+
+              // Utility libraries
+              { name: 'utils', test: /[\\/]node_modules[\\/](lodash|dayjs|moment|axios)[\\/]/ },
+
+              // UI utilities
+              { name: 'ui-utils', test: /[\\/]node_modules[\\/](@vueuse|vue-demi)[\\/]/ },
+            ],
           },
         },
       },