Enable SVG loading
This commit is contained in:
parent
42e69b9968
commit
d3725b9595
1 changed files with 7 additions and 0 deletions
|
|
@ -1,8 +1,15 @@
|
||||||
import { paraglideVitePlugin } from '@inlang/paraglide-js'
|
import { paraglideVitePlugin } from '@inlang/paraglide-js'
|
||||||
import { sveltekit } from '@sveltejs/kit/vite'
|
import { sveltekit } from '@sveltejs/kit/vite'
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
|
import { fileURLToPath, URL } from 'node:url'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
$src: fileURLToPath(new URL('./src', import.meta.url))
|
||||||
|
}
|
||||||
|
},
|
||||||
|
assetsInclude: ['**/*.svg'],
|
||||||
plugins: [
|
plugins: [
|
||||||
sveltekit(),
|
sveltekit(),
|
||||||
paraglideVitePlugin({
|
paraglideVitePlugin({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue