diff --git a/angular.json b/angular.json index 489bca7..00d56c6 100644 --- a/angular.json +++ b/angular.json @@ -51,12 +51,27 @@ "maximumError": "5MB" } ], - "outputHashing": "all" + "outputHashing": "all", + "sourceMap": false, + "optimization": true, + "extractLicenses": true, + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.production.ts" + } + ] }, "development": { "optimization": false, "extractLicenses": false, - "sourceMap": true + "sourceMap": true, + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.development.ts" + } + ] } }, "defaultConfiguration": "production" diff --git a/package.json b/package.json index e9da126..ba3f778 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,9 @@ "version": "0.0.0", "scripts": { "ng": "ng", - "start": "ng serve", + "start": "ng serve --configuration development", + "start:production": "ng serve --configuration production", + "start:development" : "ng serve --configuration development", "build": "ng build", "watch": "ng build --watch --configuration development", "test": "ng test" diff --git a/src/app/app.component.html b/src/app/app.component.html index fa85576..7b98051 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,4 +1,14 @@ -