17 lines
393 B
TypeScript
17 lines
393 B
TypeScript
import { defineConfig } from "vite";
|
|
import { resolve } from "path";
|
|
|
|
export default defineConfig({
|
|
publicDir: false,
|
|
build: {
|
|
outDir: "public",
|
|
emptyOutDir: false,
|
|
lib: {
|
|
entry: resolve(__dirname, "src/iframe_api.ts"),
|
|
name: "iframe_api",
|
|
formats: ["cjs"],
|
|
fileName: () => "iframe_api.js",
|
|
},
|
|
},
|
|
});
|