Files
pretix_original/vite.config.js
rash 94dd5b0350 setup vite and integrate fully with django
- vite starts with `python manage.py runserver`
- add templatetags to simply load vite hmr and entry points
- add eslint (recheck rules)
- enable non-strict ts
2026-02-03 09:31:22 +01:00

23 lines
554 B
JavaScript

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, '../../static.dist/vite'),
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')
},
}
},
optimizeDeps: {
exclude: ['moment', 'jquery']
}
})