Skip to content

Commit b7e519a

Browse files
committed
✅ Add size-limit
1 parent d381a7e commit b7e519a

File tree

3 files changed

+1051
-32
lines changed

3 files changed

+1051
-32
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- [x] Only essential components, suitable for most projects
66
- [x] Customizable with `theme`
77
- [x] Responsive
8+
- [x] Only 10.5 KB (5 KB excluding deps) gziped
89

910
Created with [`pss`](https://github.com/exah/pss).
1011

package.json

+14-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"test": "run-s test:*",
3232
"test:unit": "jest",
3333
"test:lint": "eslint src test",
34+
"test:size": "size-limit",
3435
"release": "np --no-cleanup",
3536
"postrelease": "npm run deploy",
3637
"deploy": "npm run docs && cp dist/index.html dist/200.html && surge dist pss-components.surge.sh",
@@ -40,6 +41,17 @@
4041
"precommit": "lint-staged",
4142
"prepush": "npm test"
4243
},
44+
"size-limit": [
45+
{
46+
"limit": "10.5 KB",
47+
"path": "./esm/index.js"
48+
},
49+
{
50+
"limit": "5 KB",
51+
"path": "./esm/index.js",
52+
"ignore": [ "@emotion/is-prop-valid", "pss", "@exah/utils" ]
53+
}
54+
],
4355
"publishConfig": {
4456
"access": "public"
4557
},
@@ -126,7 +138,8 @@
126138
"react-feather": "^1.1.6",
127139
"react-is": "^16.8.6",
128140
"react-test-renderer": "^16.8.6",
129-
"rimraf": "^2.6.3"
141+
"rimraf": "^2.6.3",
142+
"size-limit": "^1.3.7"
130143
},
131144
"dependencies": {
132145
"@emotion/is-prop-valid": "^0.8.2",

0 commit comments

Comments
 (0)