interactive-solutions / another-boring-react-boilerplate

React starter kit with Redux, CSS modules, react-router, code splitting, etc.
MIT License
3 stars 0 forks source link

Updating to webpack 4.8.x #13

Closed jarnell closed 6 years ago

jarnell commented 6 years ago

@macnibblet Yes, we are using chunkhash to cache bust build files = files get the same filename as long as they're not changed. E.g. if I edit Button.js in the starter kit, only common.js (where Button.js code ends up) and manifest.js (telling the browser that common.js has been updated) would get new hashes. All other bundles, including vendor, would stay the same.

macnibblet commented 6 years ago

@jarnell Can we get an upgrade guide?

jarnell commented 6 years ago

@Valmorbus Fixed!

@macnibblet I guess the easiest way to upgrade a project using the current version is to look at the diff, especially config/webpack.<common/prod/dev>.js and update the project manually.

jarnell commented 6 years ago

Finally merging this so I don't get notifications of security issues with some old version of serve.