mike-diamond / media-query-splitting-plugin

Webpack 4 plugin for styles splitting by media query
MIT License
106 stars 17 forks source link

Make changes to a media will change hash of all other ones ! #14

Closed dNitro closed 3 years ago

dNitro commented 5 years ago

When making a change to a media ( for example the desktop one), this plugin changes all other media hashes too. This is harmful to long term caching as all users ( include mobile ones ) now need to make a request to receive the new styles while nothing has changed. This should happen only to desktop users.

So when we make a change to a media, only the hash of this chunk should change and others should remain untouched as their content does not change at all.

mike-diamond commented 5 years ago

Will fix in the next release

mike-diamond commented 3 years ago

Fixed in version 2.0.4