mirror of
https://github.com/ad1217/PrinterStatus
synced 2024-11-14 12:13:48 -05:00
27 lines
483 B
TypeScript
27 lines
483 B
TypeScript
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': {
|
|
target: 'ws://localhost:1234',
|
|
ws: true,
|
|
},
|
|
'/webcam': {
|
|
target: 'http://localhost:1234',
|
|
},
|
|
},
|
|
},
|
|
});
|