Skip to content

perf: skip heavy resource webpack stats#164

Merged
chrisblossom merged 1 commit intojohnagan:masterfrom
endiliey:forToString
Oct 15, 2019
Merged

perf: skip heavy resource webpack stats#164
chrisblossom merged 1 commit intojohnagan:masterfrom
endiliey:forToString

Conversation

@endiliey
Copy link
Copy Markdown
Contributor

Summary

Since we only need assets from webpack stats.toJson(), we can pass 'forToString` option in https://github.com/webpack/webpack/blob/42407cb5616aff940935cb58a4fda8429140c122/lib/Stats.js#L104 to skip heavy resource webpack stats

This shall reduce memory usage and improve performance

Test Plan

1

@chrisblossom
Copy link
Copy Markdown
Collaborator

This looks great. Thanks for the contribution!

@johnagan could we get a release at your earliest convenience?

@chrisblossom chrisblossom merged commit 021d2b6 into johnagan:master Oct 15, 2019
@endiliey endiliey deleted the forToString branch October 21, 2019 15:35
SmushyTaco pushed a commit to SmushyTaco/clean-webpack-plugin that referenced this pull request Jan 15, 2025
perf: skip heavy resource webpack stats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants