silvester-23/vite.config.ts

19 lines
515 B
TypeScript
Raw Normal View History

2023-10-17 18:51:44 +02:00
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
2023-11-29 15:59:16 +01:00
import { paraglide } from "@inlang/paraglide-js-adapter-vite"
import path from "path"
2023-10-17 18:51:44 +02:00
export default defineConfig({
2023-11-29 15:59:16 +01:00
plugins: [sveltekit(), paraglide({
project: "./project.inlang.json",
outdir: "./src/paraglide"
})],
resolve: {
alias: {
// This is the alias you can use in your code
// you can change it to whatever you want
"$paraglide": path.resolve(__dirname, "src/paraglide")
}
}
2023-10-17 18:51:44 +02:00
});