From 84be452bb86314ca6d1a1baafd43d3104bd967d1 Mon Sep 17 00:00:00 2001 From: Artem Sapegin Date: Thu, 8 Nov 2018 09:37:22 +0100 Subject: [PATCH] Chore: Add a comment how to analyze webpack bundle --- .gitignore | 1 + examples/sections/styleguide.config.js | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index b9dcbf799..aa140cb39 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ yarn.lock /cypress/ test/cypress/screenshots/ test/cypress/videos/ +stats.json diff --git a/examples/sections/styleguide.config.js b/examples/sections/styleguide.config.js index 87caa927f..09cf8311c 100644 --- a/examples/sections/styleguide.config.js +++ b/examples/sections/styleguide.config.js @@ -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