Open Weeken opened 7 months ago
We'll fix it soon.
This issue has been resolved in the new version of npm sass-embedded. However, due to the long-standing lack of updates to the sass-embedded we use in Rust, we are unable to utilize the new version of npm sass-embedded. As a result, this problem cannot currently be fixed in @farmfe/plugin-sass.
Fortunately, you can use @farmfe/js-plugin-sass as a replacement.
import sass from '@farmfe/js-plugin-sass';
export default {
// ..
plugins: [
// ..
sass({ legacy: true, additionalData: `@use "@/style/common.scss" as *;` })
]
}
ok
Steps to reproduce
src/styles/scss/global.scss
farm.config.ts
What is expected?
build success
What is actually happening?
System Info
Any additional comments?
No response