Skip to content

Commit

Permalink
Chore: Add a comment how to analyze webpack bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Sapegin committed Nov 8, 2018
1 parent 5c35029 commit 84be452
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -17,3 +17,4 @@ yarn.lock
/cypress/
test/cypress/screenshots/
test/cypress/videos/
stats.json
5 changes: 5 additions & 0 deletions examples/sections/styleguide.config.js
Expand Up @@ -74,6 +74,11 @@ module.exports = {
},
],
},
// How to analyze what's in the bundle:
// 1. Comment `hints: 'error'` line below
// 2. Uncomment a line with `stats.json` in src/scripts/build.js
// 3. npm run build:sections
// 4. npx webpack-bundle-analyzer stats.json
performance:
env === 'development'
? false
Expand Down

0 comments on commit 84be452

Please sign in to comment.