partey_workadventure/front/iframe-api.vite.config.ts

17 lines
393 B
TypeScript
Raw Permalink Normal View History

2022-02-02 00:20:46 +01:00
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",
},
},
});