From 3916a4d8a87b4892c3e3b5e52dee60f17d1fe43c Mon Sep 17 00:00:00 2001 From: Philip Zeyliger Date: Wed, 7 Jan 2026 17:37:46 +0000 Subject: [PATCH] shelley/ui: copy assets (manifest.json, icons) during build Prompt: I see errors fetching manifest.json when i load up shelley in the chrome inspector The build script was not copying files from src/assets/ to dist/, causing manifest.json and icons to return 404 errors in Chrome. This was visible as errors in Chrome DevTools console. --- ui/scripts/build.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ui/scripts/build.js b/ui/scripts/build.js index 96dba7cb9c1bf392e3ce46b8019c0532dfb4fcab..a48cd79936ffeda3069ffa1423822fc4a3ad2585 100644 --- a/ui/scripts/build.js +++ b/ui/scripts/build.js @@ -55,6 +55,14 @@ async function build() { fs.copyFileSync('src/index.html', 'dist/index.html'); fs.copyFileSync('src/styles.css', 'dist/styles.css'); + // Copy assets (icons, manifest, etc.) + const assetsDir = 'src/assets'; + if (fs.existsSync(assetsDir)) { + for (const file of fs.readdirSync(assetsDir)) { + fs.copyFileSync(`${assetsDir}/${file}`, `dist/${file}`); + } + } + // Write build info // Get the absolute path to the src directory for staleness checking const srcDir = new URL('../src', import.meta.url).pathname;