Skip to content

Apply content-hashing to app.bundle.js and app.bundle.css filenames

Administrator requested to merge app-bundle-cache-bust into main

Created by: umpox

Fixes https://github.com/sourcegraph/sourcegraph/issues/19471 Additional context: https://github.com/sourcegraph/sourcegraph/pull/19509

This PR:

  • adds contenthashes to our app.bundle.js and app.bundle.css filenames
  • exposes webpack manifest file for local dev and production
  • adds logic to read the webpack manifest file containing the current names of the app bundle files, and load it into a go struct
  • modifies the app.html template to read the current name of the app bundle files
  • modifies the watchman config to reload the frontend binary if either the manifest file or app.html file are modified

cc: @ggilmore

Merge request reports

Loading