2024-02-04 01:11:33 +01:00
|
|
|
import {defineConfig} from 'vite';
|
|
|
|
import vue from '@vitejs/plugin-vue';
|
2023-12-24 02:24:48 +01:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
2024-02-04 01:11:33 +01:00
|
|
|
plugins: [
|
|
|
|
vue({
|
|
|
|
template: {
|
|
|
|
compilerOptions: {
|
|
|
|
isCustomElement: (tag) => tag.includes('event-form') || tag.includes('event-index') || tag.includes('event-description'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
build: {
|
|
|
|
lib: {
|
|
|
|
entry: './src/main.js',
|
|
|
|
name: 'main',
|
|
|
|
fileName: 'main',
|
2023-12-24 02:24:48 +01:00
|
|
|
},
|
|
|
|
},
|
2024-02-04 01:11:33 +01:00
|
|
|
define: {
|
|
|
|
'process.env': process.env,
|
|
|
|
},
|
|
|
|
server: {
|
|
|
|
port: 5174,
|
|
|
|
},
|
2023-12-24 02:24:48 +01:00
|
|
|
});
|