From 760b098fc4d62feb498ff74e8049e9a488c9a5c4 Mon Sep 17 00:00:00 2001 From: Richard Park Date: Wed, 18 Dec 2019 16:12:54 +0900 Subject: [PATCH] browser target is added --- angular.json | 35 +++++++++++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 36 insertions(+) diff --git a/angular.json b/angular.json index bb83b8fc..b71200bd 100644 --- a/angular.json +++ b/angular.json @@ -159,6 +159,38 @@ } ] }, + "browser-daesang-development": { + "fileReplacements": [ + { + "replace": "projects/ucap-webmessenger-app/src/environments/environment.ts", + "with": "projects/ucap-webmessenger-app/src/environments/environment-browser.daesang.dev.ts" + } + ], + "outputPath": "dist/ucap-webmessenger-app-browser", + "polyfills": "projects/ucap-webmessenger-app/src/polyfills-es5.ts", + "tsConfig": "projects/ucap-webmessenger-app/tsconfig-es5.app.json", + "optimization": false, + "outputHashing": "all", + "sourceMap": true, + "extractCss": true, + "namedChunks": false, + "aot": false, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": false, + "budgets": [ + { + "type": "initial", + "maximumWarning": "2mb", + "maximumError": "5mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "6kb", + "maximumError": "10kb" + } + ] + }, "renderer-daesang-development": { "fileReplacements": [ { @@ -240,6 +272,9 @@ "renderer-production": { "browserTarget": "ucap-webmessenger-app:build:renderer-production" }, + "browser-daesang-development": { + "browserTarget": "ucap-webmessenger-app:build:browser-daesang-development" + }, "renderer-daesang-development": { "browserTarget": "ucap-webmessenger-app:build:renderer-daesang-development" }, diff --git a/package.json b/package.json index fbb1744d..a1a784eb 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "start:daesang": "npm-run-all -p start:daesang:renderer start:daesang:main", "start:daesang:main": "wait-on http-get://localhost:4200/ && npm run build:daesang:main:development && electron --nolazy --inspect-brk=9229 .", "start:daesang:renderer": "cross-env UCAP_ENV_RUNTIME=ELECTRON ng serve -c renderer-daesang-development", + "start:daesang:browser": "cross-env UCAP_ENV_RUNTIME=BROWSER ng serve -c browser-daesang-development -o", "start:browser": "cross-env UCAP_ENV_RUNTIME=BROWSER ng serve -c browser-development -o", "build": "npm-run-all -p build:renderer build:main:production", "build:renderer": "cross-env NODE_ENV=production ng build -c renderer-development --base-href ./",