siddharthkp / bundlesize
- воскресенье, 2 июля 2017 г. в 03:11:41
Keep your bundle size in check
Keep your bundle size in check
npm install bundlesize --save
Add it to your scripts in package.json
"scripts": {
"test": "bundlesize"
}
package.json
{
"name": "your cool library",
"version": "1.1.2",
"bundlesize": [
{
"path": "./dist.js",
"threshold": "3 Kb"
}
]
}
Works only with Travis CI for now.
Build branch updates
and Build pull request updates
on travis-ci. (screenshot)bundlesize
for status access, copy the token provided.github_token
as environment parameter in travis settings(Ask me for help if you're stuck)
MIT © siddharthkp