mirror of
https://github.com/benjamin-wilson/public-pool-ui.git
synced 2025-03-17 13:22:55 +01:00
electron
This commit is contained in:
parent
11884281cb
commit
1fe730c4d2
42
angular.json
42
angular.json
@ -42,6 +42,48 @@
|
||||
]
|
||||
},
|
||||
"configurations": {
|
||||
"electron": {
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.electron.ts"
|
||||
}
|
||||
],
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "3mb",
|
||||
"maximumError": "3mb"
|
||||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "2kb",
|
||||
"maximumError": "4kb"
|
||||
}
|
||||
],
|
||||
"outputHashing": "all"
|
||||
},
|
||||
"production": {
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.prod.ts"
|
||||
}
|
||||
],
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "3mb",
|
||||
"maximumError": "3mb"
|
||||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "2kb",
|
||||
"maximumError": "4kb"
|
||||
}
|
||||
],
|
||||
"outputHashing": "all"
|
||||
},
|
||||
"production": {
|
||||
"fileReplacements": [
|
||||
{
|
||||
|
@ -6,6 +6,7 @@
|
||||
"start": "ng serve --proxy-config proxy.config.local.json ",
|
||||
"start:prod": "ng serve --proxy-config proxy.config.prod.json ",
|
||||
"build": "ng build --configuration=production && gzipper compress --gzip --brotli ./dist/public-pool-ui/",
|
||||
"build:electron": "ng build --configuration=electron --base-href ./",
|
||||
"build:github": "ng build --configuration=production && echo \"web.public-pool.io\" > dist/public-pool-ui/CNAME",
|
||||
"watch": "ng build --watch --configuration development",
|
||||
"test": "ng test",
|
||||
|
5
src/environments/environment.electron.ts
Normal file
5
src/environments/environment.electron.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export const environment = {
|
||||
production: true,
|
||||
API_URL: 'http://localhost:3334',
|
||||
STRATUM_URL: 'localhost:3333'
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user