2
0
mirror of https://github.com/ad1217/PrinterStatus synced 2024-11-14 04:13:30 -05:00
PrinterStatus/vite.config.ts

27 lines
483 B
TypeScript
Raw Normal View History

2021-10-28 01:06:08 -04:00
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue({
template: {
compilerOptions: {
isCustomElement: (tag) => tag == 'video-js',
},
},
}),
],
server: {
proxy: {
'/ws': {
2021-10-28 01:06:08 -04:00
target: 'ws://localhost:1234',
ws: true,
},
2021-10-28 01:06:08 -04:00
'/webcam': {
target: 'http://localhost:1234',
},
},
},
});