Skip to content

Commit d0acf27

Browse files
committed
fix: silence SCSS deprecation warnings from Bootstrap and other libraries
1 parent f6ab86b commit d0acf27

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

packages/webui/vite.config.mts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ export default defineConfig(({ command }) => ({
5959
},
6060
},
6161

62+
css: {
63+
preprocessorOptions: {
64+
scss: {
65+
// Silence deprecation warnings from Bootstrap and other libraries
66+
// These are caused by Bootstrap 5.x not yet fully supporting Dart Sass 2.x
67+
silenceDeprecations: ['import', 'global-builtin', 'color-functions', 'mixed-decls'],
68+
},
69+
},
70+
},
71+
6272
define: {
6373
__APP_VERSION__: JSON.stringify(process.env.npm_package_version),
6474
},

0 commit comments

Comments
 (0)