Skip to content

Commit

Permalink
feat(BundleReport): update README with bundle-report link
Browse files Browse the repository at this point in the history
  • Loading branch information
antekai committed Oct 17, 2018
1 parent d8cdd5f commit 8cdecf1
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
## Preview

URL: https://react-map-app.netlify.com/
Bundle analysis: [wba-report.html](http://htmlpreview.github.io/?https://github.com/antekai/ct-med-map/blob/master/wba-report.html)
![]()

## Installation
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"eject": "react-scripts eject",
"travis-deploy-once": "travis-deploy-once",
"semantic-release": "semantic-release",
"lh": "lighthouse-ci"
"lh": "lighthouse-ci",
"wba": "node triggerBundleAnalyzer.js"
},
"eslintConfig": {
"extends": "react-app"
Expand Down
4 changes: 2 additions & 2 deletions triggerBundleAnalyzer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// node triggerBundleAnalyzer.js
// creates bundle analysis: ~/build/report.html
// creates bundle analysis: ~ wba-report.html
process.env.NODE_ENV = "production";
var BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
.BundleAnalyzerPlugin;
Expand All @@ -9,7 +9,7 @@ const webpackConfigProd = require("react-scripts/config/webpack.config.prod");
webpackConfigProd.plugins.push(
new BundleAnalyzerPlugin({
analyzerMode: "static",
reportFilename: "report.html"
reportFilename: "../wba-report.html"
})
);

Expand Down
25 changes: 25 additions & 0 deletions wba-report.html

Large diffs are not rendered by default.

0 comments on commit 8cdecf1

Please sign in to comment.