Skip to content

Commit b0d3ae6

Browse files
committed
Adds analyze npm script
1 parent 973cadd commit b0d3ae6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ node_modules
3232

3333
# ignore playground dir
3434
playground
35+
36+
# ignore Webpack stats output
37+
stats.json

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"docs": "npm run docs:react && npm run docs:util",
1818
"docs:util": "jsdoc2md src/util/index.js > docs/util/util.md",
1919
"docs:clean": "rimraf docs/components/* && rimraf docs/util/*",
20-
"release": "npm run test && npm run build && npm run docs && git commit -a && np"
20+
"release": "npm run test && npm run build && npm run docs && git commit -a && np",
21+
"analyze": "webpack --config webpack.config.js --env build --profile --json > stats.json && echo '==> http://webpack.github.io/analyse/'",
22+
"analyze:clean": "rimraf stats.json"
2123
},
2224
"jest": {
2325
"collectCoverageFrom": [

0 commit comments

Comments
 (0)