Skip to content

Commit

Permalink
chore: Suppress Unused CSS selector warnings.
Browse files Browse the repository at this point in the history
We should, obviously, rather just clean up the CSS. But for now, the
warnings are spamming the console to the point where actual debugging is
impossible: debug statements and logging is drowned in this noise.

From sveltejs/svelte-loader#67
  • Loading branch information
berkes committed Aug 27, 2024
1 parent 94c187d commit fb7cce0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ module.exports = {
preprocess: require("svelte-preprocess")({
paths: ["src", "src/stylesheets"],
}),
onwarn(warning, onwarn) { // Disable "Unused CSS Selector" warnings. We should clean out the CSS instead.
return warning.code === 'css-unused-selector' || onwarn(warning);
},
},
},
},
Expand Down

0 comments on commit fb7cce0

Please sign in to comment.