adrema-form/vite.config.js

29 lines
589 B
JavaScript
Raw Normal View History

2023-12-25 21:15:25 +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({
2023-12-25 21:15:25 +01:00
plugins: [
vue({
template: {
compilerOptions: {
isCustomElement: (tag) => tag.includes('event-form'),
},
},
}),
],
build: {
lib: {
entry: './src/main.js',
name: 'main',
fileName: 'main',
2023-12-24 02:24:48 +01:00
},
},
2023-12-25 21:15:25 +01:00
define: {
'process.env': process.env,
},
server: {
port: 5174,
},
2023-12-24 02:24:48 +01:00
});