This article has not been translated yet. Want to help us out? Click the Edit this doc on GitHub at the end of the page.

@umijs/plugin-sass

启用 sass 编译支持。

启用方式

默认开启。

配置

implementation

默认是 Dart Sass

如果要切换到 Node Sass,可安装 node-sass 依赖,然后配置,

export default {
sass: {
implementation: require('node-sass'),
},
}

sassOptions

  • Type: Object|Function

传递给 Dart SassNode Sass 的配置项。