-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
34 lines (33 loc) · 991 Bytes
/
vite.config.js
File metadata and controls
34 lines (33 loc) · 991 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
28
29
30
31
32
33
34
import { svelte } from "@sveltejs/vite-plugin-svelte";
import tailwindcss from "@tailwindcss/vite";
import { resolve } from "path";
import { defineConfig } from "vite";
import svelteConfig from "./svelte.config.js";
export default defineConfig({
plugins: [svelte({ configFile: false, ...svelteConfig }), tailwindcss()],
resolve: {
alias: {
$assets: resolve(__dirname, "src/mainview/assets"),
$bun: resolve(__dirname, "src/bun"),
$lib: resolve(__dirname, "src/mainview/lib"),
$resources: resolve(__dirname, "src/resources"),
$shared: resolve(__dirname, "src/shared"),
},
},
root: "src/mainview",
base: "./",
build: {
outDir: "../../dist",
emptyOutDir: true,
chunkSizeWarningLimit: 1000,
rolldownOptions: {
input: {
main: resolve(__dirname, "src/mainview/index.html"),
trayPopover: resolve(__dirname, "src/mainview/tray-popover.html"),
},
},
},
server: {
forwardConsole: true,
},
});