Skip to content

Add generageStatsFiles flag#269

Merged
jayair merged 9 commits into
AnomalyInnovations:masterfrom
dror-weiss:feature/generate-stats-files
Nov 25, 2021
Merged

Add generageStatsFiles flag#269
jayair merged 9 commits into
AnomalyInnovations:masterfrom
dror-weiss:feature/generate-stats-files

Conversation

@dror-weiss
Copy link
Copy Markdown
Contributor

Fixes #227.

Sets up the generateStatsFiles flag, which spits out bundle_stats.json and bundle_stats.html stats files to the .webpack directory. This can then be used in other tools to analyze the bundle size of the deployed lambda/service.

Reference:

generateStatsFiles: false (stats files are not being generated and not being bundled)
image

generateStatsFiles: true (stats files are being generated under .webpack and not being bundled)
image

Special thanks to @krishnagopinath which started this fix.

@dror-weiss dror-weiss mentioned this pull request Nov 3, 2021
@jayair jayair added the enhancement New feature or request label Nov 6, 2021
@jayair
Copy link
Copy Markdown
Member

jayair commented Nov 6, 2021

@dror-weiss Thanks for this! Any idea why the tests are failing?

…to feature/generate-stats-files

* origin/feature/generate-stats-files:

# Conflicts:
#	index.js
@dror-weiss
Copy link
Copy Markdown
Contributor Author

@jayair, I removed a timeout on my test that I forgot to remove, but that wasn't it. I tried to reproduce those errors but I wasn't able to pinpoint the reason, but after I merged from your current master I didn't get these Command failed errors.

@jayair
Copy link
Copy Markdown
Member

jayair commented Nov 25, 2021

Great! Thanks @dror-weiss. Merging this.

@jayair jayair merged commit 0de12ac into AnomalyInnovations:master Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

analyzeBundle flag

2 participants