添加测试环境配置

This commit is contained in:
潘晓云
2022-04-09 15:47:11 +08:00
parent 9d207f98cf
commit f92ca6fe62
4 changed files with 15 additions and 2 deletions

View File

@ -83,6 +83,18 @@
"maximumError": "10mb"
}]
},
"test": {
"fileReplacements": [{
"replace": "src/environments/environment.ts",
"with": "src/environments/eascs/environment.test.ts"
}],
"outputHashing": "all",
"budgets": [{
"type": "initial",
"maximumWarning": "4mb",
"maximumError": "10mb"
}]
},
"development": {
"buildOptimizer": false,
"optimization": false,

View File

@ -16,6 +16,7 @@
"hmr": "ng s -o --hmr",
"build": "npm run ng-high-memory build --",
"build:dev": "npm run build -- -c dev",
"build:test": "npm run build -- -c test",
"analyze": "npm run ng-high-memory build -- --source-map",
"analyze:view": "source-map-explorer dist/**/*.js",
"lint": "npm run lint:ts && npm run lint:style",

View File

@ -4,7 +4,7 @@ export const environment = {
production: true,
useHash: true,
api: {
baseUrl: 'https://tms-api-test.eascs.com',
baseUrl: 'https://tms-api.yunduoxing.com',
refreshTokenEnabled: true,
refreshTokenType: 'auth-refresh'
}