This commit is contained in:
tidusjar 2025-08-23 21:40:42 +01:00
commit e8c64b777b
2 changed files with 47 additions and 4 deletions

View file

@ -25,6 +25,18 @@
"assets": [ "assets": [
"src/assets" "src/assets"
], ],
"optimization": true,
"buildOptimizer": true,
"aot": true,
"vendorChunk": true,
"extractLicenses": true,
"sourceMap": false,
"namedChunks": true,
"subresourceIntegrity": true,
"allowedCommonJsDependencies": [
"jquery",
"bootstrap"
],
"styles": [ "styles": [
"node_modules/@angular/material/prebuilt-themes/indigo-pink.css", "node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles/_imports.scss", "src/styles/_imports.scss",
@ -42,11 +54,27 @@
] ]
}, },
"configurations": { "configurations": {
"development": {
"optimization": false,
"buildOptimizer": false,
"aot": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true,
"subresourceIntegrity": false
},
"production": { "production": {
"budgets": [ "budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{ {
"type": "anyComponentStyle", "type": "anyComponentStyle",
"maximumWarning": "6kb" "maximumWarning": "6kb",
"maximumError": "10kb"
} }
], ],
"fileReplacements": [ "fileReplacements": [
@ -55,7 +83,15 @@
"with": "src/environments/environment.prod.ts" "with": "src/environments/environment.prod.ts"
} }
], ],
"outputHashing": "all" "outputHashing": "all",
"optimization": true,
"buildOptimizer": true,
"aot": true,
"vendorChunk": true,
"extractLicenses": true,
"sourceMap": false,
"namedChunks": true,
"subresourceIntegrity": true
}, },
"hmr": { "hmr": {
"budgets": [ "budgets": [
@ -75,7 +111,8 @@
"vendorChunk": true, "vendorChunk": true,
"extractLicenses": false, "extractLicenses": false,
"sourceMap": true, "sourceMap": true,
"namedChunks": true "namedChunks": true,
"aot": false
} }
} }
}, },
@ -85,6 +122,9 @@
"buildTarget": "ombi:build" "buildTarget": "ombi:build"
}, },
"configurations": { "configurations": {
"development": {
"buildTarget": "ombi:build:development"
},
"production": { "production": {
"buildTarget": "ombi:build:production" "buildTarget": "ombi:build:production"
}, },

View file

@ -3,8 +3,11 @@
"version": "4.0.0", "version": "4.0.0",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve --port 3578 --configuration hmr", "start": "ng serve --port 3578 --configuration development",
"start:hmr": "ng serve --port 3578 --configuration hmr",
"build": "node --max_old_space_size=6144 node_modules/@angular/cli/bin/ng build -c production", "build": "node --max_old_space_size=6144 node_modules/@angular/cli/bin/ng build -c production",
"build:dev": "node --max_old_space_size=6144 node_modules/@angular/cli/bin/ng build -c development",
"build:prod": "node --max_old_space_size=6144 node_modules/@angular/cli/bin/ng build -c production",
"lint": "ng lint", "lint": "ng lint",
"docs:json": "compodoc -p ./tsconfig.json -e json -d .", "docs:json": "compodoc -p ./tsconfig.json -e json -d .",
"storybook": "start-storybook -p 6006", "storybook": "start-storybook -p 6006",