mirror of
https://github.com/open-webui/open-webui
synced 2025-05-23 06:14:25 +00:00
Merge pull request #8610 from excho0/patch-1
🌟 Chore: Add Svelte Inspector for Easier Development 🌟
This commit is contained in:
commit
2818f3cf95
@ -16,8 +16,16 @@ const config = {
|
|||||||
fallback: 'index.html'
|
fallback: 'index.html'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
vitePlugin: {
|
||||||
|
inspector: {
|
||||||
|
toggleKeyCombo: 'meta-shift', // Key combination to open the inspector
|
||||||
|
holdMode: false, // Enable or disable hold mode
|
||||||
|
showToggleButton: 'always', // Show toggle button ('always', 'active', 'never')
|
||||||
|
toggleButtonPos: 'bottom-right' // Position of the toggle button
|
||||||
|
}
|
||||||
|
},
|
||||||
onwarn: (warning, handler) => {
|
onwarn: (warning, handler) => {
|
||||||
const { code, _ } = warning;
|
const { code } = warning;
|
||||||
if (code === 'css-unused-selector') return;
|
if (code === 'css-unused-selector') return;
|
||||||
|
|
||||||
handler(warning);
|
handler(warning);
|
||||||
|
Loading…
Reference in New Issue
Block a user