Fix: production builds break Icon component when SVGs are loaded as inline code. Adjusted vite.config.js. Updated the Node.js version in Dockerfile
This commit is contained in:
@@ -2,5 +2,10 @@ import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
assetsInlineLimit: (file) => {
|
||||
return !file.endsWith('.svg');
|
||||
}
|
||||
},
|
||||
plugins: [sveltekit()]
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user