forked from open-goal/launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
36 lines (35 loc) · 900 Bytes
/
vite.config.ts
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
36
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import Icons from "unplugin-icons/vite";
import { fileURLToPath, URL } from "url";
// https://vitejs.dev/config/
export default defineConfig({
server: {
port: 3000, // The port the server will listen on.
},
plugins: [
svelte({
hot: !process.env.VITEST,
}),
Icons({
compiler: "svelte",
}),
],
resolve: {
alias: {
$lib: fileURLToPath(new URL("./src/lib", import.meta.url)),
$assets: fileURLToPath(new URL("./src/assets", import.meta.url)),
},
},
optimizeDeps: { exclude: ["svelte-navigator"] },
build: {
rollupOptions: {
input: {
main: fileURLToPath(new URL("./index.html", import.meta.url)),
splash: fileURLToPath(
new URL("./src/splash/index.html", import.meta.url),
),
},
},
},
});