mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
working prod build
acutal serving of built assets not tested yet
This commit is contained in:
24
vite.config.ts
Normal file
24
vite.config.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
// 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'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
vue()
|
||||
],
|
||||
build: {
|
||||
manifest: true,
|
||||
outDir: path.resolve(__dirname, 'src/pretix/static.dist/vite/control'),
|
||||
rollupOptions: {
|
||||
input: {
|
||||
'webcheckin/main': path.resolve(__dirname, 'src/pretix/plugins/webcheckin/static/pretixplugins/webcheckin/main.ts'),
|
||||
'checkinrules/main': path.resolve(__dirname, 'src/pretix/static/pretixcontrol/js/ui/checkinrules/index.ts')
|
||||
},
|
||||
}
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: ['moment', 'jquery']
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user