This commit is contained in:
Benjamin Wilson 2024-07-11 13:43:55 -04:00
parent 11884281cb
commit 1fe730c4d2
3 changed files with 48 additions and 0 deletions

View File

@ -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": [
{

View File

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

View File

@ -0,0 +1,5 @@
export const environment = {
production: true,
API_URL: 'http://localhost:3334',
STRATUM_URL: 'localhost:3333'
};