2022-04-15 21:46:48 -04:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
2023-07-22 15:12:05 -04:00
|
|
|
import Icons from "unplugin-icons/vite";
|
2022-04-19 00:46:22 -04:00
|
|
|
import { fileURLToPath, URL } from "url";
|
2022-04-14 00:26:38 -04:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
2023-02-12 19:13:40 -05:00
|
|
|
server: {
|
|
|
|
port: 3000, // The port the server will listen on.
|
|
|
|
},
|
2023-07-22 15:12:05 -04:00
|
|
|
plugins: [
|
|
|
|
svelte({
|
|
|
|
hot: !process.env.VITEST,
|
|
|
|
}),
|
|
|
|
Icons({
|
|
|
|
compiler: "svelte",
|
|
|
|
}),
|
|
|
|
],
|
2022-04-19 00:46:22 -04:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
2022-04-20 00:51:37 -04:00
|
|
|
$lib: fileURLToPath(new URL("./src/lib", import.meta.url)),
|
|
|
|
$assets: fileURLToPath(new URL("./src/assets", import.meta.url)),
|
2022-04-19 00:46:22 -04:00
|
|
|
},
|
|
|
|
},
|
2022-06-16 20:40:37 -04:00
|
|
|
optimizeDeps: { exclude: ["svelte-navigator"] },
|
2022-06-18 14:36:28 -04:00
|
|
|
build: {
|
|
|
|
rollupOptions: {
|
|
|
|
input: {
|
|
|
|
main: fileURLToPath(new URL("./index.html", import.meta.url)),
|
|
|
|
splash: fileURLToPath(
|
2023-07-24 18:38:03 -04:00
|
|
|
new URL("./src/splash/index.html", import.meta.url),
|
2022-06-18 14:36:28 -04:00
|
|
|
),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-04-15 21:46:48 -04:00
|
|
|
});
|