Quellcode durchsuchen

增加test打包

tongshangming vor 1 Jahr
Ursprung
Commit
215553068b
3 geänderte Dateien mit 9 neuen und 1 gelöschten Zeilen
  1. 4 0
      .env.test
  2. 1 0
      package.json
  3. 4 1
      src/config/mainMicro.ts

+ 4 - 0
.env.test

@@ -0,0 +1,4 @@
+NODE_ENV = 'test'
+
+VITE_BASE_API = /apiSys
+VITE_BASE_PATH = 

+ 1 - 0
package.json

@@ -7,6 +7,7 @@
     "build": "run-p type-check build-only",
     "preview": "vite preview --port 4173",
     "build-only": "vite build",
+    "build-test": "vite build --mode test",
     "type-check": "vue-tsc --noEmit",
     "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
     "domain": "plop domain",

+ 4 - 1
src/config/mainMicro.ts

@@ -3,15 +3,18 @@ const microConfig = [
     name: 'pictureAlbum',
     url: {
       development: 'http://10.0.0.210:32001',
+      test: '',
       production: ''
     },
     exec: true,
-    alive: true
+    alive: true,
+    preload: true
   },
   {
     name: 'mini',
     url: {
       development: 'http://localhost:5175',
+      test: '',
       production: ''
     },
     exec: true,