angular-cli

Angular 6 angular.json add ssl in configuration

空扰寡人 提交于 2020-08-23 04:03:38
问题 I want to serve my application though SSL previously I had this script: ng serve --ssl --ssl-key "pathtokey\key.crt" I want to add SSL in the new angular.json but when i try to add it i got the error: Schema validation failed with the following errors: Data path "" should NOT have additional properties(ssl). What is the proper way to use SSL with angular cli 6? 回答1: In angular.json: "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { "browserTarget": "app:build",

Angular 6 angular.json add ssl in configuration

青春壹個敷衍的年華 提交于 2020-08-23 04:03:14
问题 I want to serve my application though SSL previously I had this script: ng serve --ssl --ssl-key "pathtokey\key.crt" I want to add SSL in the new angular.json but when i try to add it i got the error: Schema validation failed with the following errors: Data path "" should NOT have additional properties(ssl). What is the proper way to use SSL with angular cli 6? 回答1: In angular.json: "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { "browserTarget": "app:build",

How to edit environment variables without rebuild in Angular 6?

↘锁芯ラ 提交于 2020-08-21 06:34:26
问题 I usually set my API URLs in environment.ts file. I have to deploy the same build to multiple clients with different API URLs. Currently I am taking separate builds after changing the environment variables. Is there any way to edit environment variables after build, so I can give the same build to each client? 回答1: I researched this issue and this is my solution without using environment.ts I defined global settings in json file. Because if we defined in ts file, if build in production mode

Call retries were exceeded exception while ng build

走远了吗. 提交于 2020-08-21 05:49:42
问题 I am facing an exception while ng build (generating ES5 bundles for differential loading...) An unhandled exception occured: Call retires were exceeded Used versions: Angular-CLI: 8.3.20 Angular: 8.2.7 Node: 12.12.1 Also in logs, it is mentioned [error] Error: Call retries were exceeded at ChildProcessWorker.initialize 回答1: Update 10.02.2019 This was a problem of the @angular/cli . Updating the version to >= 8.3.22 should fix the issue: see this comment in #16515 ORIGINAL Basically the build