Skip to content

Commit

Permalink
Adding bundlesize reporter to build process
Browse files Browse the repository at this point in the history
  • Loading branch information
JedWatson committed Apr 23, 2018
1 parent bf200ac commit 1c57787
Show file tree
Hide file tree
Showing 2 changed files with 232 additions and 39 deletions.
8 changes: 7 additions & 1 deletion package.json
Expand Up @@ -36,6 +36,7 @@
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"bundlesize": "^0.17.0",
"chroma-js": "^1.3.6",
"chrono-node": "^1.3.5",
"copy-webpack-plugin": "^4.3.1",
Expand Down Expand Up @@ -89,7 +90,7 @@
"react-dom": "^15.3.0 || ^16.0.0"
},
"scripts": {
"build": "nps build",
"build": "nps build && bundlesize",
"watch": "nps build.watch",
"cover": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text mocha",
"coveralls": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text mocha && cat coverage/lcov.info | coveralls",
Expand Down Expand Up @@ -118,6 +119,11 @@
"select",
"ui"
],
"bundlesize": [
{
"path": "./dist/react-select.js"
}
],
"jest": {
"modulePathIgnorePatterns": [
"./node_modules"
Expand Down

0 comments on commit 1c57787

Please sign in to comment.