Skip to content

Commit fc2eadf

Browse files
authored
Run optimo on pre-commit to compress images and video (#721)
1 parent 09eb018 commit fc2eadf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
"nano-staged": {
3535
"*.{astro,cjs,css,js,json,jsonc,jsx,mjs,ts,tsx}": [
3636
"biome check --write --no-errors-on-unmatched"
37-
]
37+
],
38+
"*.{png,jpg,jpeg,webp,avif,heic,gif,svg}": "pnpm dlx optimo",
39+
"*.{mp4,webm,mov}": "pnpm dlx optimo"
3840
},
3941
"devDependencies": {
4042
"@biomejs/biome": "^2.5.5",

0 commit comments

Comments
 (0)