2023-09-03 00:23:48 +02:00
|
|
|
import { defineConfig } from "vite";
|
2023-09-15 16:33:25 +02:00
|
|
|
import preact from "@preact/preset-vite";
|
|
|
|
import { resolve } from "path";
|
2023-09-03 00:23:48 +02:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
2023-09-15 16:33:25 +02:00
|
|
|
plugins: [preact()],
|
2023-09-03 04:11:56 +02:00
|
|
|
build: {
|
|
|
|
manifest: "manifest.json",
|
|
|
|
},
|
2023-09-15 16:33:25 +02:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
$: resolve(__dirname, "./src/"),
|
|
|
|
$lib: resolve(__dirname, "./src/lib/"),
|
|
|
|
$components: resolve(__dirname, "./src/components/"),
|
|
|
|
$pages: resolve(__dirname, "./src/pages/"),
|
|
|
|
$public: resolve(__dirname, "./public/"),
|
|
|
|
},
|
|
|
|
},
|
2023-09-03 00:23:48 +02:00
|
|
|
});
|