mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
- 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
23 lines
554 B
JavaScript
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']
|
|
}
|
|
})
|