-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
20 lines (19 loc) · 761 Bytes
/
vite.config.ts
File metadata and controls
20 lines (19 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { paraglideVitePlugin } from "@inlang/paraglide-js";
import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
import devtoolsJson from "vite-plugin-devtools-json";
export default defineConfig({
plugins: [
devtoolsJson(),
paraglideVitePlugin({
project: "./project.inlang",
outdir: "./src/lib/paraglide",
strategy: ["url", "preferredLanguage", "baseLocale"],
localStorageKey: "paraglide-lang",
disableAsyncLocalStorage: true, // Disable async local storage for serverless environments
cleanOutdir: true, // Clean the output directory before generating files
emitPrettierIgnore: true, // Emit a .prettierignore file to ignore generated files
}),
sveltekit(),
],
});