partey_workadventure/front/iframe-api.vite.config.ts
2022-02-02 00:20:46 +01:00

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",
},
},
});