diff --git a/parent-vite.config.js b/parent-vite.config.js index 7eb85dcfa952580a2434ce44b1e2fd2bfa9aa373..da7cae97c4e4d02eedd4ffe5505464b8ae8e1416 100644 --- a/parent-vite.config.js +++ b/parent-vite.config.js @@ -1,5 +1,11 @@ +/** + * We do a second build for parent (the first one builds both parent and chatterbox-app) because we need + * the link to the CSS file for parent with the asset-hash included. + */ const { defineConfig } = require("vite") const { resolve } = require("path"); + +// We've configured the first build to produce a manifest.json that tells us what the asset-hashed file names are. import manifestJSON from "./target/manifest.json"; const cssLink = manifestJSON["index.html"]["css"][0];