forked from moq-dev/moq
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
33 lines (32 loc) · 858 Bytes
/
Copy pathvite.config.ts
File metadata and controls
33 lines (32 loc) · 858 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
import tailwindcss from "@tailwindcss/vite";
import path from "path";
import { defineConfig } from "vite";
import solidPlugin from "vite-plugin-solid";
export default defineConfig({
root: "src",
plugins: [tailwindcss(), solidPlugin()],
define: {
// Inject the hang-ui assets path for development
__HANG_UI_ASSETS_PATH__: JSON.stringify(`/@fs${path.resolve(__dirname, "../hang-ui/dist")}`),
},
build: {
target: "esnext",
sourcemap: process.env.NODE_ENV === "production" ? false : "inline",
rollupOptions: {
input: {
watch: "index.html",
publish: "publish.html",
support: "support.html",
meet: "meet.html",
},
},
},
server: {
// TODO: properly support HMR
hmr: false,
},
optimizeDeps: {
// No idea why this needs to be done, but I don't want to figure it out.
exclude: ["@libav.js/variant-opus-af"],
},
});