Merge pull request #1316 from ryankupk/svelte-warnings

Update svelte.config.js to suppress unused CSS selector warnings
This commit is contained in:
Timothy Jaeryang Baek 2024-03-27 23:49:42 -07:00 committed by GitHub
commit 2fcc4aec4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;