26 lines
462 B
JavaScript
26 lines
462 B
JavaScript
|
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,
|
||
|
},
|
||
|
});
|