mercury/frontend/vite.config.ts
2023-09-15 16:33:25 +02:00

20 lines
501 B
TypeScript

import { defineConfig } from "vite";
import preact from "@preact/preset-vite";
import { resolve } from "path";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [preact()],
build: {
manifest: "manifest.json",
},
resolve: {
alias: {
$: resolve(__dirname, "./src/"),
$lib: resolve(__dirname, "./src/lib/"),
$components: resolve(__dirname, "./src/components/"),
$pages: resolve(__dirname, "./src/pages/"),
$public: resolve(__dirname, "./public/"),
},
},
});