chore: add size-limit to precommit checks

This commit is contained in:
Ayo Ayco 2025-03-22 12:01:19 +01:00
parent 6d05547ed5
commit 3e896ada83
2 changed files with 3 additions and 6 deletions

View file

@ -1,2 +1,3 @@
npm run lint --cache
npm run test
npm run test
npx size-limit

View file

@ -78,16 +78,12 @@
"size-limit": [
{
"path": "./dist/WebComponent.js",
"limit": "1.5 KB"
"limit": "1.1 KB"
},
{
"path": "./dist/html.js",
"limit": "0.6 KB"
},
{
"path": "./dist/attach-effect.js",
"limit": "0.1 KB"
},
{
"path": "./dist/utils/create-element.js",
"limit": "0.5 KB"