forked from open-webui/open-webui
Update svelte.config.js to suppress unused CSS selector warnings
This commit is contained in:
parent
eb51ad14e4
commit
addee2f248
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue