Skip to content

Commit 61012b4

Browse files
committed
feat(bundlesize): add initial setup
1 parent 46b0874 commit 61012b4

2 files changed

Lines changed: 563 additions & 14 deletions

File tree

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"test": "npm run build && mocha test/bootstrap.js --recursive test",
1717
"build": "microbundle src/index.mjs --no-sourcemap",
1818
"prepare": "npm run -s build",
19+
"bundlesize": "bundlesize",
1920
"release": "cross-var npm run build -s && cross-var git commit -am $npm_package_version && cross-var git tag $npm_package_version && git push && git push --tags"
2021
},
2122
"keywords": [
@@ -28,6 +29,7 @@
2829
],
2930
"devDependencies": {
3031
"babel-preset-env": "^1.7.0",
32+
"bundlesize": "^0.17.0",
3133
"chai": "^4.2.0",
3234
"cross-var": "^1.1.0",
3335
"eslint": "^5.9.0",
@@ -37,6 +39,12 @@
3739
"microbundle": "^0.7.0",
3840
"mocha": "^5.2.0"
3941
},
42+
"bundlesize": [
43+
{
44+
"path": "./dist/*.js",
45+
"maxSize": "2 kB"
46+
}
47+
],
4048
"dependencies": {
4149
"puppeteer": "^1.10.0"
4250
}

0 commit comments

Comments
 (0)