-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.ts
23 lines (22 loc) · 958 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
import { defineConfig } from "vite";
export default defineConfig({
// By default vite uses absolute paths from the content root (e.g. /index.html).
// Because this project is hosted with GitHub actions without a custom domain,
// it is located in a subdirectory/subbase and we need relative paths.
// The below setting tells vite to use relative paths everywhere.
base: "",
build: {
rollupOptions: {
output: {
manualChunks: {
// Split monaco editor into a separate chunk.
// This improves the loading time of the editor
// as the JS of sprotty/the application can be already parsed
// while the JS of monaco, which is only needed later on user-interaction
// anyway, is still loading.
"monaco-editor": ["monaco-editor"],
},
},
},
},
});