【缺陷修复】全局:"legacy-js-api" 报错
parent
f87b37eaac
commit
e891a4bfd2
|
@ -44,7 +44,8 @@ export default ({command, mode}: ConfigEnv): UserConfig => {
|
|||
preprocessorOptions: {
|
||||
scss: {
|
||||
additionalData: '@use "@/styles/variables.scss" as *;',
|
||||
javascriptEnabled: true
|
||||
javascriptEnabled: true,
|
||||
silenceDeprecations: ["legacy-js-api"], // 参考自 https://stackoverflow.com/questions/78997907/the-legacy-js-api-is-deprecated-and-will-be-removed-in-dart-sass-2-0-0
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue