Skip to content

Commit 5938da7

Browse files
committed
fix: sass warning when starting
1 parent 9e7009d commit 5938da7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ export default defineConfig(async (): Promise<UserConfig> => {
4848
preprocessorOptions: {
4949
scss: {
5050
// example : additionalData: `@import "./src/design/styles/variables";`
51-
// dont need include file extend .scss
5251
api: 'modern-compiler',
5352
additionalData: fileStr,
53+
// 这里查看可选值:https://github.com/sass/sass/blob/1c9ec00/js-api-doc/deprecations.d.ts#L180
54+
silenceDeprecations: ['import', 'global-builtin'],
5455
},
5556
postcss: {
5657
plugins: [atImport({ path: join(__dirname, 'src`') })],

0 commit comments

Comments
 (0)