jihuaqiang 2 tahun lalu
induk
melakukan
89bc86a569
3 mengubah file dengan 626 tambahan dan 8 penghapusan
  1. 1 0
      package.json
  2. 21 1
      vue.config.js
  3. 604 7
      yarn.lock

+ 1 - 0
package.json

@@ -22,6 +22,7 @@
     "element-plus": "^2.1.10",
     "eslint": "^8.13.0",
     "eslint-plugin-vue": "^8.7.0",
+    "filemanager-webpack-plugin": "^7.0.0",
     "mathjs": "^10.5.0",
     "moment": "^2.29.1",
     "node-polyfill-webpack-plugin": "^2.0.1",

+ 21 - 1
vue.config.js

@@ -6,6 +6,8 @@ const AutoImport = require('unplugin-auto-import/webpack')
 const Components = require('unplugin-vue-components/webpack')
 const { ElementPlusResolver } = require('unplugin-vue-components/resolvers')
 const CopyWebpackPlugin = require('copy-webpack-plugin');
+const FilemanagerPlugin = require('filemanager-webpack-plugin');
+
 
 
 
@@ -112,7 +114,25 @@ module.exports = {
             to: `${path.resolve('dist')}/rules`
           }
         ]
-      })
+      }),
+
+      new FilemanagerPlugin({
+        events: {
+          onEnd: {
+            archive: [
+              {
+                format: 'zip',
+                source: path.join(__dirname, 'dist'),
+                destination: `dist.zip`,
+                options: {zlib: {level: 6}},
+              },
+            ],
+          },
+        },
+      }),
+
+
+
     ],
   },
   // 配置 content.css

File diff ditekan karena terlalu besar
+ 604 - 7
yarn.lock


Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini