-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
56 lines (52 loc) · 1.33 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// import path from "path"
// import react from "@vitejs/plugin-react"
// import { defineConfig } from "vite"
// export default defineConfig({
// plugins: [react()],
// resolve: {
// alias: {
// "@": path.resolve(__dirname, "./src"),
// },
// },
// optimizeDeps: {
// exclude: ["@ffmpeg/ffmpeg", "@ffmpeg/util"],
// },
// server: {
// headers: {
// "Cross-Origin-Opener-Policy": "same-site",
// "Cross-Origin-Embedder-Policy": "cross-origin",
// "Access-Control-Allow-Origin": "*",
// "Content-Security-Policy": "frame-ancestors 'self' meet.jit.si",
// },
// host: true,
// strictPort: true,
// port: 5173,
// },
// })
import path from "path"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
import svgr from 'vite-plugin-svgr';
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js';
export default defineConfig({
plugins: [
react(),
svgr(),
cssInjectedByJsPlugin(),
],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
optimizeDeps: {
exclude: ["@ffmpeg/ffmpeg", "@ffmpeg/util"],
},
server: {
headers: {
"Cross-Origin-Opener-Policy": "same-origin",
"Cross-Origin-Embedder-Policy": "credentialless",
"Access-Control-Allow-Origin": "*",
},
},
})