Browse Source

Update svelte.config.js to suppress unused CSS selector warnings

ryankupk 1 year ago
parent
commit
addee2f248
1 changed files with 9 additions and 1 deletions
  1. 9 1
      svelte.config.js

+ 9 - 1
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;