-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
32 lines (31 loc) · 992 Bytes
/
vite.config.js
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 {resolve} from 'path';
import markdown from 'rollup-plugin-md';
import svelte from 'rollup-plugin-svelte';
export default {
root: 'examples',
build: {
outDir: '../out',
emptyOutDir: true,
rollupOptions: {
input: {
main: resolve('examples/index.html'),
columns: resolve('examples/columns/index.html'),
demo: resolve('examples/demo/index.html'),
events: resolve('examples/events/index.html'),
hello: resolve('examples/hello-world/index.html')
}
}
},
plugins: [
markdown(),
svelte()
],
resolve: {
alias: {
'@activewidgets/examples/shared': resolve('./shared/index.js'),
'@activewidgets/examples/data': resolve('./data'),
'@activewidgets/examples/flags': resolve('./flags'),
'@activewidgets/examples': resolve('./viewer/index.js')
}
}
}