From 6a9d0da31b4bb85a86fae3bb9e3e0b8a0f06a2e9 Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Tue, 29 Sep 2026 17:46:31 -0600 Subject: [PATCH 1/2] feat: Add .DS_Store to .gitignore to prevent macOS system files from being tracked --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 1e3a166..cce66aa 100644 --- a/.gitignore +++ b/.gitignore @@ -144,3 +144,4 @@ vite.config.ts.timestamp-* # Local dev config - copy _config.default.json to _config.local.json and point it at your processor public/_local-config/_config.local.json +.DS_Store From bef874764b767d14ea1b0399097ee26217ffad2c Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Tue, 29 Sep 2026 17:53:42 -0600 Subject: [PATCH 2/2] feat: Add build configuration to inline SVG assets as data URIs --- vite.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 442e4cf..1aca480 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -122,6 +122,13 @@ export default defineConfig({ // 404s bundle assets on nested routes and leaves the panel blank. base: '/mc/app/', plugins: [react(), clientErrorReporter()], + build: { + // Inline every SVG as a data URI, not just those under Vite's 4KB default. On the TSW-1070 the + // SVGs above that limit (emitted as separate /mc/app/assets/*.svg files) never rendered, even + // though the processor serves them correctly - while the inlined ones always did. Other asset + // types keep the default behavior. + assetsInlineLimit: (filePath) => (filePath.endsWith('.svg') ? true : undefined), + }, define: { APP_VERSION: JSON.stringify(process.env.npm_package_version), },