politics-rewired / Spoke

Politics Rewired's fork of Spoke
GNU General Public License v3.0
35 stars 16 forks source link

Serve Javascript bundle from CDN #1341

Open ben-pr-p opened 2 years ago

ben-pr-p commented 2 years ago

As part of #1233, we should build and serve our Javascript bundle from a CDN.

To do this, we need to:

bchrobot commented 2 years ago

If we stick with the manifest map approach from webpack-manifest-plugin then we will need to copy the generated assets.json to the Docker image.

bundle.js is the only asset generated by the webpack build, however, so it may be easier (at least for production) to scrap the manifest approach in favor of a BUNDLE_URL envvar.