aboutsummaryrefslogtreecommitdiffstats
path: root/vite.config.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-03 20:48:42 -0800
committerAdam Soltys <[email protected]>2024-11-03 20:48:42 -0800
commit45c120aa153078323f5d6555711119513abb1258 (patch)
tree8cf18059bc730dc005a69ff66f96b53f80fa1f01 /vite.config.js
parentce79d97331f630df92bde34ce7809da2b8fd4ffa (diff)
downloadcoinos-ui-45c120aa153078323f5d6555711119513abb1258.tar.gz
coinos-ui-45c120aa153078323f5d6555711119513abb1258.zip
dark mode
Diffstat (limited to 'vite.config.js')
-rw-r--r--vite.config.js35
1 files changed, 18 insertions, 17 deletions
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;