From 9aed77e8ea82dcd52f94615bcd985c4cbd6cb476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Fri, 5 Aug 2022 17:53:04 +0200 Subject: [PATCH] Make asset paths configurable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rūdolfs Ošiņš --- Emoji.svelte | 6 ++---- lib/config.ts | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 lib/config.ts diff --git a/Emoji.svelte b/Emoji.svelte index 43b7e7d..173e8ac 100644 --- a/Emoji.svelte +++ b/Emoji.svelte @@ -9,13 +9,11 @@ type EmojiSize = "small" | "regular" | "large" | "huge"; import twemoji from "twemoji"; + import { config } from "./lib/config"; export let emoji: string; export let size: EmojiSize = "regular"; export let style: string | undefined = undefined; - - // Set this to an empty string if you need a relative asset path. - export let assetPathPrefix: string = "/";