Catalyst 1.3.1

Script integrity.

Added

  • Script integrity. With SCRIPT_INTEGRITY_ENABLE: true in config/config.json, catalyst build writes a sha384 hash of every built JS file to build/.vite/integrity.json, and the production server adds integrity and crossorigin="anonymous" to the script and modulepreload tags it renders. Rebuild after turning it on: a server that starts with the flag on and no hashes logs a warning and serves the scripts without integrity. Only the tags in the document are checked. Scripts those files load through a static import or import() are not, and neither is CSS. It has no effect in catalyst start.