Files
hoppscotch/packages/hoppscotch-ui/vite.config.ts
Joel Jacob Stephen 3f59597864 feat: introducing self hosted admin dashboard package (#12)
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
Co-authored-by: Anwarul Islam <anwaarulislaam@gmail.com>
2023-02-28 13:13:27 +05:30

41 lines
876 B
TypeScript

import vue from "@vitejs/plugin-vue"
import dts from "vite-plugin-dts"
import path from "path"
import Icons from "unplugin-icons/vite"
import { defineConfig } from "vite"
import WindiCSS from "vite-plugin-windicss"
export default defineConfig({
plugins: [
vue(),
dts({
insertTypesEntry: true,
skipDiagnostics: true,
outputDir: ['dist']
}),
WindiCSS({
root: path.resolve(__dirname),
}),
Icons({
compiler: "vue3"
}),
], // to process SFC
build: {
sourcemap: true,
minify: false,
lib: {
entry: path.resolve(__dirname, "src/index.ts"),
name: "hopp-ui",
formats: ["es"],
fileName: (format, entry) => `${entry}.${format}.js`,
},
rollupOptions: {
external: ["vue", "vue-router"],
output: {
exports: "named",
},
},
emptyOutDir: true
},
})