From addee2f248fd2fa6b4c01a57c591751739dfb1d9 Mon Sep 17 00:00:00 2001 From: ryankupk Date: Tue, 26 Mar 2024 23:07:01 +0000 Subject: [PATCH] Update svelte.config.js to suppress unused CSS selector warnings --- svelte.config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/svelte.config.js b/svelte.config.js index a3c75a019..be8b3f529 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -16,7 +16,15 @@ const config = { assets: 'build', fallback: 'index.html' }) - } + }, + onwarn: (warning, handler) => { + const { code, _ } = warning; + if (code === "css-unused-selector") + return; + + handler(warning); + }, + }; export default config;