From 1420ad1eced2d590ce042977f5e6d62099fbba78 Mon Sep 17 00:00:00 2001 From: KoloMl Date: Tue, 26 Nov 2024 01:48:56 +0400 Subject: [PATCH] Disabled assets inlining for files like SVG icons --- vite.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index 3270d6c..d55cc05 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,7 +2,11 @@ import {sveltekit} from '@sveltejs/kit/vite'; import {defineConfig} from 'vite'; export default defineConfig({ + build: { + // SVGs imported from the FA6 don't need to be inlined! + assetsInlineLimit: 0 + }, plugins: [ sveltekit(), - ] + ], });