adrema-form/vite.config.js

30 lines
538 B
JavaScript
Raw Normal View History

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