xieyonghong 3 år sedan
förälder
incheckning
a6d8f07cbe
3 ändrade filer med 5 tillägg och 6 borttagningar
  1. 0 1
      config/config.ts
  2. 4 4
      config/proxy.ts
  3. 1 1
      package.json

+ 0 - 1
config/config.ts

@@ -93,5 +93,4 @@ export default defineConfig({
     );
     memo.module.rule('mjs-rule').test(/.m?js/).resolve.set('fullySpecified', false);
   },
-  devtool: 'source-map',
 });

+ 4 - 4
config/proxy.ts

@@ -12,11 +12,11 @@ export default {
       // target: 'http://192.168.32.28:8844/',
       // ws: 'ws://192.168.32.28:8844/',
       // 开发环境
-      // target: 'http://120.79.18.123:8844/',
-      // ws: 'ws://120.79.18.123:8844/',
+      target: 'http://120.79.18.123:8844/',
+      ws: 'ws://120.79.18.123:8844/',
       // 测试环境
-      target: 'http://120.77.179.54:8844/',
-      ws: 'ws://120.77.179.54:8844/',
+      // target: 'http://120.77.179.54:8844/',
+      // ws: 'ws://120.77.179.54:8844/',
       // target: 'http://192.168.66.5:8844/',
       // ws: 'ws://192.168.66.5:8844/',
       // ws: 'ws://demo.jetlinks.cn/jetlinks',

+ 1 - 1
package.json

@@ -35,7 +35,7 @@
     "start:pre": "cross-env REACT_APP_ENV=pre UMI_ENV=dev umi dev",
     "start:test": "cross-env REACT_APP_ENV=test MOCK=none UMI_ENV=dev umi dev",
     "pretest": "node ./tests/beforeTest",
-    "test": "node --max_old_space_size=8192 ./node_modules/.bin/ng test",
+    "test": "umi test",
     "test:all": "node ./tests/run-tests.js",
     "test:component": "umi test ./src/components",
     "serve": "umi-serve",