forked from CGM_Public/pretix_original
working vite widget setup for prod (untested), local dev (with or without dev server) and pytests, with flags for running the old version or the vite version
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// vite build config for control UI
|
||||
// widget has its own config, see src/pretix/static/pretixpresale/widget/vite.config.ts
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import path from 'path'
|
||||
@@ -8,11 +10,11 @@ export default defineConfig({
|
||||
],
|
||||
build: {
|
||||
manifest: true,
|
||||
outDir: path.resolve(__dirname, '../../static.dist/vite'),
|
||||
outDir: path.resolve(__dirname, 'src/pretix/static.dist/vite/control'),
|
||||
rollupOptions: {
|
||||
input: {
|
||||
// 'webcheckin/main': path.resolve(__dirname, '../plugins/webcheckin/static/pretixplugins/webcheckin/main.js'),
|
||||
'checkinrules/main': path.resolve(__dirname, '../pretixcontrol/js/ui/checkinrules/index.ts')
|
||||
'checkinrules/main': path.resolve(__dirname, 'src/pretix/static/pretixcontrol/js/ui/checkinrules/index.ts')
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user