-
Notifications
You must be signed in to change notification settings - Fork 246
Expand file tree
/
Copy pathvite.config.js
More file actions
64 lines (63 loc) · 1.53 KB
/
vite.config.js
File metadata and controls
64 lines (63 loc) · 1.53 KB
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
57
58
59
60
61
62
63
64
import { defineConfig } from "vite";
import { viteStaticCopy } from "vite-plugin-static-copy";
import tsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({
optimizeDeps: {
exclude: [
"@ffmpeg/ffmpeg",
"@sqlite.org/sqlite-wasm",
]
},
base: "/convert/",
plugins: [
viteStaticCopy({
targets: [
{
src: "node_modules/@flo-audio/reflo/reflo_bg.wasm",
dest: "wasm"
},
{
src: "src/handlers/pandoc/pandoc.wasm",
dest: "wasm"
},
{
src: "node_modules/@ffmpeg/core/dist/esm/ffmpeg-core.*",
dest: "wasm"
},
{
src: "node_modules/@imagemagick/magick-wasm/dist/magick.wasm",
dest: "wasm"
},
{
src: "src/handlers/libopenmpt/libopenmpt.wasm",
dest: "wasm"
},
{
src: "src/handlers/libopenmpt/libopenmpt.js",
dest: "wasm"
},
{
src: "node_modules/js-synthesizer/externals/libfluidsynth-2.4.6.js",
dest: "wasm"
},
{
src: "node_modules/js-synthesizer/dist/js-synthesizer.js",
dest: "wasm"
},
{
src: "src/handlers/midi/TimGM6mb.sf2",
dest: "wasm"
},
{
src: "src/handlers/espeakng.js/js/espeakng.worker.js",
dest: "js"
},
{
src: "src/handlers/espeakng.js/js/espeakng.worker.data",
dest: "js"
}
]
}),
tsconfigPaths()
]
});