Skip to content

Commit

Permalink
优化编译
Browse files Browse the repository at this point in the history
  • Loading branch information
zgwit committed Jul 14, 2024
1 parent e562cc5 commit 7daa31d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 24 deletions.
21 changes: 12 additions & 9 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"projects": {
"webui": {
"iot-master": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
Expand Down Expand Up @@ -73,36 +73,39 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "iot-master:build",
"proxyConfig": "proxy.conf.json"
},
"configurations": {
"production": {
"buildTarget": "webui:build:production"
"browserTarget": "iot-master:build:production"
},
"development": {
"buildTarget": "webui:build:development",
"proxyConfig": "proxy.conf.json"
"browserTarget": "iot-master:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"buildTarget": "webui:build"
"browserTarget": "iot-master:build"
}
}
}
}
},
"cli": {
"analytics": false
}
}
18 changes: 3 additions & 15 deletions proxy.conf.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,19 @@
{
"/mqtt/": {
"target": "http://localhost:8080/",
"target": "http://localhost:8888/",
"secure": false,
"logLevel": "debug",
"changeOrigin": true,
"ws": true
},
"/api/": {
"target": "http://localhost:8080/",
"secure": false,
"logLevel": "debug",
"changeOrigin": true
},
"/app/": {
"target": "http://localhost:8080/",
"target": "http://localhost:8888/",
"secure": false,
"logLevel": "debug",
"changeOrigin": true
},
"/attach/": {
"target": "http://localhost:8080/",
"secure": false,
"logLevel": "debug",
"changeOrigin": true
},
"/$camera/": {
"target": "http://localhost:8080/",
"target": "http://localhost:8888/",
"secure": false,
"logLevel": "debug",
"changeOrigin": true
Expand Down

0 comments on commit 7daa31d

Please sign in to comment.