johnagan / clean-webpack-plugin

A webpack plugin to remove your build folder(s) before building
MIT License
1.96k stars 135 forks source link

perf: skip heavy resource webpack stats #164

Closed endiliey closed 4 years ago

endiliey commented 4 years ago

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 commented 4 years ago

This looks great. Thanks for the contribution!

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