-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
35 lines (34 loc) · 967 Bytes
/
vite.config.js
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
28
29
30
31
32
33
34
35
import { defineConfig } from "vite";
import { resolve } from "path";
import restart from "vite-plugin-restart";
import {svelte} from "@sveltejs/vite-plugin-svelte";
import windi from "vite-plugin-windicss";
export default defineConfig(({ command, mode }) => {
const production = mode === "production";
return {
clearScreen: false,
// proxy: {
// cookieDomainRewrite: "franses.app",
// target: 'https://help.franses.app'
// },
resolve: {
alias: {
$components: resolve("src/components"),
$assets: resolve("src/assets"),
},
},
optimizeDeps: {exclude: ["svelte-navigator"]}, // https://github.com/EmilTholin/svelte-navigator/pull/200/commits/ec654d33bc3461b6a4ea90ccad76df9ba4ca9340
plugins: [
restart({
restart: ["./windi.config.cjs"],
}),
windi(),
svelte({
hot: !production,
}),
],
define: {
"process.env": process.env,
},
};
});