chore: fix sass deprecation warnings and upgrade vite to 5.4
- Upgrade vite from 5.1.3 to 5.4.21 to support modern sass API option - Configure sass preprocessor with api: 'modern' to silence legacy-js-api warning - Silence bulma-sourced deprecation warnings (import, global-builtin, color-functions, if-function)
This commit is contained in:
@@ -92,6 +92,18 @@ export default defineConfig({
|
||||
}
|
||||
})
|
||||
],
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
api: 'modern',
|
||||
silenceDeprecations: ['import', 'global-builtin', 'color-functions', 'if-function']
|
||||
},
|
||||
sass: {
|
||||
api: 'modern',
|
||||
silenceDeprecations: ['import', 'global-builtin', 'color-functions', 'if-function']
|
||||
}
|
||||
}
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
|
||||
Reference in New Issue
Block a user