Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 7 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
Expand Down
Loading