diff --git a/angular.json b/angular.json index 26d1d85..8def314 100644 --- a/angular.json +++ b/angular.json @@ -75,9 +75,14 @@ "defaultConfiguration": "production" }, "serve": { - "builder": "@angular-builders/custom-webpack:dev-server", - "options": { - "browserTarget": "frontend-hideyoshi.com:build:build" + "builder": "@angular-devkit/build-angular:dev-server", + "configurations": { + "production": { + "browserTarget": "frontend-hideyoshi.com:build:production" + }, + "development": { + "browserTarget": "frontend-hideyoshi.com:build:development" + } }, "defaultConfiguration": "development" }, diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 3ea41ac..07e3469 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -35,7 +35,7 @@ export class AppComponent implements OnInit { let cookieConsentStatus = this.cookieConsentService.getCookieConsentStatusFromLocalStorage(); if (cookieConsentStatus) { - this.ccService.fadeOut(); + this.ccService.destroy(); } this.cookieStatusChangeSubscription = this.ccService.statusChange$.subscribe(