top | item 24748339

(no title)

zamber | 5 years ago

Caching was a major dissapointment for me. DllPlugin is a nightmare to setup and other caching plugins I tried don't really speed things up. What eventually worked for me is HardSourceWebpackPlugin [1] - two lines added and went from 2min to 15s (with a tradeoff of a slightly longer initial build).

[1] - https://github.com/mzgoddard/hard-source-webpack-plugin

discuss

order

nicoburns|5 years ago

Not sure on the specifics, but my understanding is that the major improvements in Webpack 5 are related to caching.

zamber|5 years ago

I got the same message. Still, having faster builds with one additional plugin without configuration needs on projects locked on 4 or waiting out the transition is a plus in my book :).