mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 13:29:53 +00:00
Merge pull request #1316 from ryankupk/svelte-warnings
Update svelte.config.js to suppress unused CSS selector warnings
This commit is contained in:
commit
2fcc4aec4b
@ -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 New Issue
Block a user