提交 d4be63ba 编写于 作者: fxy060608's avatar fxy060608

fix(cli): Compatible with dart-sass #1509

上级 c8b1777c
......@@ -75,7 +75,10 @@ module.exports = function initOptions (options) {
options.css.loaderOptions.sass.sassOptions = {}
}
// 指定 outputStyle, 否则 production 模式下会被默认成 compressed
options.css.loaderOptions.sass.sassOptions.outputStyle = 'nested'
const outputStyle = options.css.loaderOptions.sass.sassOptions.outputStyle
if (!outputStyle || outputStyle === 'compressed') {
options.css.loaderOptions.sass.sassOptions.outputStyle = 'expanded'
}
if (sassLoaderVersion < 8) {
options.css.loaderOptions.sass.data = sassData
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册