Revert "build: try to fix lighthouse 2"

This reverts commit 562251e2d5.
This commit is contained in:
Johannes Millan 2025-10-29 19:40:18 +01:00
parent ac833bf70c
commit e271e130e6
4 changed files with 4 additions and 37 deletions

View file

@ -28,8 +28,8 @@ jobs:
- run: npm run env # Generate env.generated.ts
- name: Build production web app (no service worker)
run: npm run buildFrontend:prodWeb:no-sw
- name: Build production web app
run: npm run buildFrontend:prodWeb
- name: Run Lighthouse CI
uses: treosh/lighthouse-ci-action@v12
@ -40,4 +40,4 @@ jobs:
uploadArtifacts: true
temporaryPublicStorage: true
# Run 3 times for consistency
runs: 1
runs: 3

View file

@ -120,38 +120,6 @@
"extractLicenses": true,
"serviceWorker": "ngsw-config.json"
},
"productionWebNoSw": {
"outputPath": {
"base": "dist",
"browser": "browser"
},
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "20kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": {
"scripts": true,
"styles": {
"minify": true,
"inlineCritical": true
},
"fonts": true
},
"outputHashing": "all",
"sourceMap": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"serviceWorker": false
},
"stage": {
"baseHref": "",
"budgets": [

View file

@ -36,7 +36,6 @@
"buildFrontend:prod:es6": "npm run prebuild && cross-env BROWSERSLIST_ENV='modern' ng build --configuration production && npm run removeWOFF1",
"buildFrontend:prod:watch": "npm run prebuild && ng build --configuration production --watch",
"buildFrontend:prodWeb": "npm run prebuild && ng build --configuration productionWeb",
"buildFrontend:prodWeb:no-sw": "npm run prebuild && ng build --configuration productionWebNoSw",
"buildFrontend:stage:es6": "npm run prebuild && cross-env BROWSERSLIST_ENV='modern' ng build --configuration stage && npm run removeWOFF1",
"buildFrontend:stageWeb": "npm run prebuild && ng build --configuration stageWeb",
"buildFrontend:stageWeb:unminified": "npm run prebuild && ng build --configuration stageWeb --optimization=false --aot=false",

View file

@ -2,7 +2,7 @@
"ci": {
"collect": {
"staticDistDir": "./dist",
"numberOfRuns": 1,
"numberOfRuns": 3,
"settings": {
"chromeFlags": "--no-sandbox --disable-dev-shm-usage",
"maxWaitForLoad": 120000,