From ca3c4f6618efca5ef8c79085c28435d52f8722b0 Mon Sep 17 00:00:00 2001 From: KoloMl Date: Sat, 14 Dec 2024 21:25:36 +0400 Subject: [PATCH] Added `$config` alias for config directory --- .vite/lib/content-scripts.js | 1 + svelte.config.js | 1 + 2 files changed, 2 insertions(+) diff --git a/.vite/lib/content-scripts.js b/.vite/lib/content-scripts.js index aad275e..55f886c 100644 --- a/.vite/lib/content-scripts.js +++ b/.vite/lib/content-scripts.js @@ -48,6 +48,7 @@ function wrapScriptIntoIIFE() { */ function makeAliases(rootDir) { return { + "$config": path.resolve(rootDir, 'src/config'), "$lib": path.resolve(rootDir, 'src/lib'), "$entities": path.resolve(rootDir, 'src/lib/extension/entities'), "$styles": path.resolve(rootDir, 'src/styles'), diff --git a/svelte.config.js b/svelte.config.js index 5532039..e32e94c 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -14,6 +14,7 @@ const config = { name: Date.now().toString(36) }, alias: { + "$config": "./src/config", "$components": "./src/components", "$styles": "./src/styles", "$stores": "./src/stores",