mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
Revert "build: try to fix lighthouse 2"
This reverts commit 562251e2d5.
This commit is contained in:
parent
ac833bf70c
commit
e271e130e6
4 changed files with 4 additions and 37 deletions
6
.github/workflows/lighthouse-ci.yml
vendored
6
.github/workflows/lighthouse-ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
32
angular.json
32
angular.json
|
|
@ -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": [
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"ci": {
|
||||
"collect": {
|
||||
"staticDistDir": "./dist",
|
||||
"numberOfRuns": 1,
|
||||
"numberOfRuns": 3,
|
||||
"settings": {
|
||||
"chromeFlags": "--no-sandbox --disable-dev-shm-usage",
|
||||
"maxWaitForLoad": 120000,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue