browser target is added

This commit is contained in:
병준 박 2019-12-18 16:12:54 +09:00
parent 70e17b4a3d
commit 760b098fc4
2 changed files with 36 additions and 0 deletions

View File

@ -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"
},

View File

@ -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 ./",