We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6739da commit a4b4640Copy full SHA for a4b4640
.github/workflows/size.yml
@@ -0,0 +1,12 @@
1
+name: size
2
+on: [pull_request]
3
+jobs:
4
+ size:
5
+ runs-on: ubuntu-latest
6
+ env:
7
+ CI_JOB_NUMBER: 1
8
+ steps:
9
+ - uses: actions/checkout@v1
10
+ - uses: andresz1/size-limit-action@v1
11
+ with:
12
+ github_token: ${{ secrets.GITHUB_TOKEN }}
package.json
@@ -18,6 +18,20 @@
18
"publishConfig": {
19
"access": "public"
20
},
21
+ "size-limit": [
22
+ {
23
+ "path": "dist/index.js",
24
+ "limit": "264 B"
25
+ },
26
27
+ "path": "dist/index.esm.js",
28
+ "limit": "288 B"
29
30
31
+ "path": "dist/index.umd.js",
32
+ "limit": "270 B"
33
+ }
34
+ ],
35
"scripts": {
36
"clean": "rimraf dist",
37
"prebuild": "npm run clean",
0 commit comments