opengoal-launcher/vite.config.ts
dependabot[bot] 68794258b7
build(deps-dev): bump the frontend-deps group with 8 updates (#289)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyler Wilding <xtvaser@gmail.com>
2023-07-24 18:38:03 -04:00

37 lines
900 B
TypeScript

import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import Icons from "unplugin-icons/vite";
import { fileURLToPath, URL } from "url";
// https://vitejs.dev/config/
export default defineConfig({
server: {
port: 3000, // The port the server will listen on.
},
plugins: [
svelte({
hot: !process.env.VITEST,
}),
Icons({
compiler: "svelte",
}),
],
resolve: {
alias: {
$lib: fileURLToPath(new URL("./src/lib", import.meta.url)),
$assets: fileURLToPath(new URL("./src/assets", import.meta.url)),
},
},
optimizeDeps: { exclude: ["svelte-navigator"] },
build: {
rollupOptions: {
input: {
main: fileURLToPath(new URL("./index.html", import.meta.url)),
splash: fileURLToPath(
new URL("./src/splash/index.html", import.meta.url),
),
},
},
},
});