-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvite.config.js
More file actions
27 lines (26 loc) · 822 Bytes
/
vite.config.js
File metadata and controls
27 lines (26 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import path from "node:path";
import { paraglide } from "@inlang/paraglide-vite";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import { BASENAME } from "./BASENAME";
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
// /esm/icons/index.mjs only exports the icons statically, so no separate chunks are created
"@tabler/icons-react": "@tabler/icons-react/dist/esm/icons/index.mjs",
},
},
plugins: [
react(),
paraglide({
project: "./project.inlang", //Path to your inlang project
outdir: "./src/paraglide", //Where you want the generated files to be placed
}),
],
base: BASENAME,
build: {
sourcemap: "inline", // Enable source maps for production build
},
});