website icon indicating copy to clipboard operation
website copied to clipboard

Adds chunk hashing for cache busting to Webpack

Open RMcNeely opened this issue 5 years ago • 4 comments

Fixes #2093

Changes Summary

  • Adds cache busting for JS built in Webpack
  • Adds cache busting for CSS via adding a time string to CSS files
  • Updates Webpack to v4
    • Uses Terser Webpack Plugin as new default method for minification

This pull request [ is ] ready for review.

RMcNeely avatar Dec 13 '19 05:12 RMcNeely

We need a manifest generated and a bit of PHP to lookup the file names in that manifest

btkostner avatar Dec 17 '19 16:12 btkostner

Added a manifest file for both the JS and CSS parts. Unfortunately I can't seem to figure out how to chunk common the same way that it was being before upgrading Webpack, so jQuery is getting loaded multiple times.

RMcNeely avatar Jan 01 '20 22:01 RMcNeely

If I recall correctly I think some other chunk was pulling in jQuery as well? I'll pull again and take a look at it.

RMcNeely avatar May 18 '20 14:05 RMcNeely

Still never got a chance to check out the jQuery issue but I did resolve conflicts and bump some dependencies.

RMcNeely avatar Jul 15 '20 03:07 RMcNeely

Closed as stale

RMcNeely avatar Oct 04 '22 19:10 RMcNeely