-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
32 lines (31 loc) · 873 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
import react from "@vitejs/plugin-react";
import { defineConfig, splitVendorChunkPlugin } from "vite";
import { comlink } from "vite-plugin-comlink";
import Inspect from "vite-plugin-inspect";
import { nodePolyfills } from "vite-plugin-node-polyfills";
import { viteStaticCopy } from "vite-plugin-static-copy";
// https://vitejs.dev/config/
export default defineConfig({
base: "./",
plugins: [
Inspect(),
comlink(),
react(),
splitVendorChunkPlugin(),
nodePolyfills(),
viteStaticCopy({
targets: [
{
src: "node_modules/coi-serviceworker/coi-serviceworker.min.js",
dest: ".",
},
],
}),
],
worker: {
plugins: () => [comlink()],
},
build: {
chunkSizeWarningLimit: Infinity,
},
});