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 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), },