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

This commit is contained in:
ryankupk 2024-03-26 23:07:01 +00:00
parent eb51ad14e4
commit addee2f248

View file

@ -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;