From 769f9b34781f010db426fef1af7d85e6fcb9a291 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 3 Nov 2024 20:48:42 -0800 Subject: dark mode --- vite.config.js | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'vite.config.js') diff --git a/vite.config.js b/vite.config.js index 2898d0ad..e0f3671f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,26 +1,27 @@ import { sveltekit } from "@sveltejs/kit/vite"; +import Icons from "unplugin-icons/vite"; import path from "path"; /** @type {import('vite').UserConfig} */ const config = { - plugins: [sveltekit()], - resolve: { - alias: { - $comp: path.resolve("src/components"), - }, - }, - server: { - proxy: - process.env.NODE_ENV === "development" - ? { - "/api/": { - target: "http://localhost:3119", - rewrite: (path) => path.replace(/^\/api\//, ""), - }, - } - : undefined, - }, + plugins: [sveltekit(), Icons({ compiler: "svelte" })], + resolve: { + alias: { + $comp: path.resolve("src/components"), + }, + }, + server: { + proxy: + process.env.NODE_ENV === "development" + ? { + "/api/": { + target: "http://localhost:3119", + rewrite: (path) => path.replace(/^\/api\//, ""), + }, + } + : undefined, + }, }; export default config; -- cgit v1.2.3