This commit is contained in:
2026-08-26 09:58:35 +08:00
parent 60ff42d0ce
commit f0dafe3b1d
20 changed files with 49 additions and 3 deletions
+16 -1
View File
@@ -2,5 +2,20 @@ import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
export default defineConfig({
plugins: [uni()]
plugins: [uni()],
css: {
preprocessorOptions: {
scss: {
// DCloud uni-scss still uses APIs deprecated by the bundled Dart Sass.
// Keep real Sass warnings/errors visible while hiding these known notices.
silenceDeprecations: [
'legacy-js-api',
'import',
'global-builtin',
'color-functions',
'if-function'
]
}
}
}
})