cal.pub0.org/packages/embeds/embed-snippet/vite.config.js

16 lines
342 B
JavaScript
Raw Normal View History

import viteBaseConfig from "../vite.config";
2022-03-31 08:45:47 +00:00
const path = require("path");
const { defineConfig } = require("vite");
module.exports = defineConfig({
...viteBaseConfig,
2022-03-31 08:45:47 +00:00
build: {
lib: {
entry: path.resolve(__dirname, "src", "index.ts"),
2022-03-31 08:45:47 +00:00
name: "snippet",
fileName: (format) => `snippet.${format}.js`,
},
},
});