perf(assets): convert images to webp and check asset paths
Convert 26 PNG/JPG assets to WebP: max 1600 px, q80, diagrams lossless. src/assets shrinks from 8.3 MB to 4.2 MB. Use me.jpg for og:image and twitter:image; some crawlers skip WebP. Add scripts/check-assets.mjs to lint, so a wrong asset path fails lint, not only at runtime.
This commit is contained in:
1 parent
4e59770e53
commit
2abc7c31e2
62 files changed
+74
-33
No files matched your search
+3
-2
@@ -7,8 +7,9 @@
|
||||
"build": "ng build",
|
||||
"watch": "ng build --watch --configuration development",
|
||||
"test": "ng test --watch=false",
|
||||
"lint": "ng lint",
|
||||
"i18n:check": "node scripts/check-i18n.mjs"
|
||||
"lint": "ng lint && npm run assets:check",
|
||||
"i18n:check": "node scripts/check-i18n.mjs",
|
||||
"assets:check": "node scripts/check-assets.mjs"
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
|
||||
Reference in new issue
Block a user