adrema-form/vite.config.js

26 lines
462 B
JavaScript
Raw Normal View History

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