添加测试环境配置
This commit is contained in:
12
angular.json
12
angular.json
@ -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,
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user