Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add generageStatsFiles flag #269

Merged

Conversation

dror-weiss
Copy link
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
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
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
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