Skip to content

Commit

Permalink
build: added bundlesize configs (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraghazra authored Oct 8, 2020
1 parent 3c2d16a commit 6b79e32
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bundlesize.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"files": [
{
"path": "./dist/umd/renderless-components.min.js",
"maxSize": "50kb"
}
]
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"build:es": "rimraf ./dist/es && babel --extensions .ts,.tsx ./src --config-file ./babel-config.js --out-dir dist/es",
"build:types": "rimraf ./dist/types && tsc --emitDeclarationOnly",
"build:umd": "rimraf ./dist/umd && cross-env NODE_ENV=production rollup -c && rollup-plugin-visualizer stats-react.json",
"bundlesize": "bundlesize",
"commit": "gacp",
"format": "prettier --write \"./**/*.{js,ts,css,less,json,md,html,yml,yaml,pcss,jsx,tsx}\"",
"keys": "node scripts/build/keys",
Expand Down Expand Up @@ -93,6 +94,7 @@
"@typescript-eslint/parser": "4.3.0",
"babel-eslint": "10.1.0",
"babel-loader": "8.1.0",
"bundlesize": "^0.18.0",
"chalk": "4.1.0",
"concurrently": "^5.3.0",
"conventional-github-releaser": "^3.1.5",
Expand Down

0 comments on commit 6b79e32

Please sign in to comment.