From 8468085291e43abc9171b3c75d61c54958417adf Mon Sep 17 00:00:00 2001 From: Excho <156542197+excho0@users.noreply.github.com> Date: Thu, 16 Jan 2025 14:29:00 +0200 Subject: [PATCH] Update svelte.config.js Added svelte inspector for easier development --- svelte.config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/svelte.config.js b/svelte.config.js index d756191d3..f429c2850 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -16,8 +16,16 @@ const config = { fallback: 'index.html' }) }, + vitePlugin: { + inspector: { + toggleKeyCombo: 'meta-shift', // Key combination to open the inspector + holdMode: false, // Enable or disable hold mode + showToggleButton: 'always', // Show toggle button ('always', 'active', 'never') + toggleButtonPos: 'bottom-right' // Position of the toggle button + } + }, onwarn: (warning, handler) => { - const { code, _ } = warning; + const { code } = warning; if (code === 'css-unused-selector') return; handler(warning);