36 lines
776 B
TypeScript
36 lines
776 B
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import { resolve } from 'path'
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
main: resolve(__dirname, 'index.html'),
|
|
map: resolve(__dirname, 'map/index.html'),
|
|
summon: resolve(__dirname, 'summon/index.html'),
|
|
chromecast: resolve(__dirname, 'chromecast/index.html'),
|
|
},
|
|
},
|
|
},
|
|
plugins: [
|
|
vue({
|
|
template: {
|
|
compilerOptions: {
|
|
isCustomElement: tag => tag === 'google-cast-launcher'
|
|
}
|
|
}
|
|
}),
|
|
],
|
|
server: {
|
|
host: '0.0.0.0',
|
|
cors: true,
|
|
proxy: {
|
|
'/maps': 'http://localhost:8080',
|
|
'/soundfx': 'http://localhost:8080'
|
|
}
|
|
}
|
|
})
|