-
Notifications
You must be signed in to change notification settings - Fork 2
/
vite.config.js
63 lines (62 loc) · 1.91 KB
/
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
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
import vue from '@vitejs/plugin-vue'
import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue({ customElement: true })],
optimizeDeps: {
include: ['@kvass/vue3-flatfinder'],
esbuildOptions: {
supported: {
'top-level-await': true,
},
},
},
build: {
target: 'esnext',
rollupOptions: {
output: {
entryFileNames: `[name].js`,
chunkFileNames: `[name].js`,
assetFileNames: `[name].[ext]`,
},
input: {
contact: fileURLToPath(
new URL('./src/contact/main.js', import.meta.url),
),
'img-comparison-slider': fileURLToPath(
new URL('./src/img-comparison-slider/main.js', import.meta.url),
),
'project-portal': fileURLToPath(
new URL('./src/project-portal/main.js', import.meta.url),
),
vimeo: fileURLToPath(new URL('./src/vimeo/main.js', import.meta.url)),
youtube: fileURLToPath(
new URL('./src/youtube/main.js', import.meta.url),
),
map: fileURLToPath(new URL('./src/map/main.js', import.meta.url)),
flatfinder: fileURLToPath(
new URL('./src/flatfinder/main.js', import.meta.url),
),
'font-selector': fileURLToPath(
new URL('./src/font-selector/main.js', import.meta.url),
),
'icon-selector': fileURLToPath(
new URL('./src/icon-selector/main.js', import.meta.url),
),
'location-selector': fileURLToPath(
new URL('./src/location-selector/main.js', import.meta.url),
),
'table-builder': fileURLToPath(
new URL('./src/table-builder/main.js', import.meta.url),
),
'chart-builder': fileURLToPath(
new URL('./src/chart-builder/main.js', import.meta.url),
)
},
},
},
server: {
port: 3001,
},
})