DEV Community

loading...

Discussion on: Optimizing front-end delivery with Webpack 4

Collapse
aodev profile image
AoDev

Thanks, we don't always have the time to "diff" a build configuration for a major upgrade of webpack. Nice summary. :)
BTW, using module lazy loading, it used to need a well configured serie of plugins to avoid hash changing all the time for each chunk, even without code changes. Have you checked that hashes are constant?

Collapse
jesalg profile image
Jesal Gadhia Author • Edited

Interesting, I just verified, the hashes do stay consistent through multiple builds as long as the contents don't change.

Might be some other that plugin may be constantly changing something in your build or just a bug in Webpack that probably got fixed in later versions.

Collapse
pavelloz profile image
Paweł Kowalski

Theres hash and contenthash. The latter is computed from chunk content (is deterministic, i hope), so the same input gives same output. Hash is global for the build afair.