-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
41 lines (39 loc) · 955 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
37
38
39
40
41
/*
* Copyright ©2025 Ewsgit<https://ewsgit.uk> and YourDash<https://yourdash.ewsgit.uk> contributors.
* YourDash is licensed under the MIT License. (https://mit.ewsgit.uk)
*/
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import dynamicImport from "vite-plugin-dynamic-import";
// enable for https testing. import mkcert from "vite-plugin-mkcert"
// ViteJS docs: https://vitejs.dev/config/
export default defineConfig({
plugins: [
// @ts-ignore
react({
babel: {
plugins: [["babel-plugin-react-compiler", {}]],
},
}),
// @ts-ignore
dynamicImport(),
// enable for https tests. mkcert()
],
appType: "spa",
root: "./",
base: "./",
build: {
rollupOptions: {
external: ["chart.js"],
},
sourcemap: true,
minify: false,
},
css: {
preprocessorOptions: {
scss: {
api: "modern-compiler", // or "modern"
},
},
},
});