Commit 96e88d2a authored by 胥静's avatar 胥静

增加伊利本地部署的environment

parent 66a3ac3e
...@@ -93,6 +93,30 @@ ...@@ -93,6 +93,30 @@
} }
] ]
}, },
"yiliProduction": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.yili.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "5mb",
"maximumError": "10mb"
}
]
},
"test": { "test": {
"fileReplacements": [ "fileReplacements": [
{ {
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"start": "ng serve", "start": "ng serve",
"build": "ng build --prod -c=production", "build": "ng build --prod -c=production",
"oflbuild": "ng build --prod -c=oflProduction", "oflbuild": "ng build --prod -c=oflProduction",
"yilibuild": "ng build --prod -c=yiliProduction",
"test": "ng build --prod -c=test", "test": "ng build --prod -c=test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e"
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
export const environment = { export const environment = {
production: false, production: false,
test: false, test: false,
baseUrl: 'https://cloud.witium.com/api', // baseUrl: 'https://cloud.witium.com/api',
baseUrl: 'https://pma-iotcloud.xapi.digitalyili.com/api',
offlineFlg: 'OFL', // 离线部署flg offlineFlg: 'OFL', // 离线部署flg
// baseUrl: 'http://cloud-test.witium.com/api', // 对外访问测试网地址 // baseUrl: 'http://cloud-test.witium.com/api', // 对外访问测试网地址
// baseUrl: 'http://172.16.1.53:8092', // cy // baseUrl: 'http://172.16.1.53:8092', // cy
......
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: true,
test: false,
baseUrl: 'https://pma-iotcloud.xapi.digitalyili.com/api',
offlineFlg: 'OFL', // 离线部署flg
};
/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in prtion mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment