mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-30 17:02:49 -05:00
Implement standalone control server
This commit is contained in:
25
packages/streamwall-control-client/vite.config.ts
Normal file
25
packages/streamwall-control-client/vite.config.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import preact from '@preact/preset-vite'
|
||||
import { resolve } from 'path'
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
// https://vitejs.dev/config
|
||||
export default defineConfig({
|
||||
base: process.env.STREAMWALL_CONTROL_URL ?? '/',
|
||||
|
||||
build: {
|
||||
sourcemap: true,
|
||||
},
|
||||
|
||||
resolve: {
|
||||
alias: {
|
||||
// Necessary for vite to watch the package dir
|
||||
'streamwall-control-ui': resolve(__dirname, '../streamwall-control-ui'),
|
||||
'streamwall-shared': resolve(__dirname, '../streamwall-shared'),
|
||||
},
|
||||
},
|
||||
|
||||
plugins: [
|
||||
// FIXME: working around TS error: "Type 'Plugin<any>' is not assignable to type 'PluginOption'"
|
||||
...(preact() as Plugin[]),
|
||||
],
|
||||
})
|
||||
Reference in New Issue
Block a user