-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.mts
More file actions
34 lines (33 loc) · 823 Bytes
/
vite.config.mts
File metadata and controls
34 lines (33 loc) · 823 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 { defineConfig } from "vite";
import environmentPlugin from "vite-plugin-environment";
import fullReload from "vite-plugin-full-reload";
import { nodePolyfills } from "vite-plugin-node-polyfills";
import react from "@vitejs/plugin-react";
import million from "million/compiler";
export default defineConfig({
plugins: [
react(),
fullReload(["**/*.ts*", "**/*.js*", "**/*.mjs"], {
always: true,
root: "src",
}),
nodePolyfills({
protocolImports: true,
}),
environmentPlugin("all", { loadEnvFiles: true, prefix: "CC_" }),
million.vite({
auto: true,
}),
],
build: {
target: "chrome87",
outDir: "build",
minify: "terser",
},
server: {
hmr: false,
},
optimizeDeps: {
include: ['@mui/material/Tooltip', '@emotion/styled'],
},
});