-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
47 lines (46 loc) · 904 Bytes
/
vite.config.js
File metadata and controls
47 lines (46 loc) · 904 Bytes
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
import { defineConfig } from 'vite';
import monacoEditorPlugin from 'vite-plugin-monaco-editor';
import cdn from 'vite-plugin-cdn-import';
export default defineConfig({
plugins: [
monacoEditorPlugin({
publicPath: 'vs',
}),
cdn({
modules: [
{
name: 'mermaid',
var: 'mermaid',
path: 'dist/mermaid.min.js',
},
{
name: '@supabase/supabase-js',
var: 'supabase',
path: 'dist/umd/supabase.min.js',
},
{
name: 'svg2roughjs',
var: 'svg2roughjs',
path: 'dist/svg2roughjs.umd.min.js',
},
],
}),
],
server: {
port: 3000,
open: true,
},
build: {
outDir: 'dist',
sourcemap: true,
},
optimizeDeps: {
include: ['monaco-editor'],
},
define: {
'process.env': {},
},
worker: {
format: 'es',
},
});