Skip to content

Commit e8be394

Browse files
committed
docs: use prependData in sass-loader >= v8
1 parent 0bcf3b7 commit e8be394

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

docs/guide/pre-processors.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ Note that `sass-loader` processes the non-indent-based `scss` syntax by default.
8888
loader: 'sass-loader',
8989
options: {
9090
// you can also read from a file, e.g. `variables.scss`
91-
data: `$color: red;`
91+
// use `data` here if sass-loader version < 8
92+
prependData: `$color: red;`
9293
}
9394
}
9495
]

docs/ru/guide/pre-processors.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ module.exports = {
8888
loader: 'sass-loader',
8989
options: {
9090
// вы можете также указать файл, например `variables.scss`
91-
data: `$color: red;`
91+
// use `data` here if sass-loader version < 8
92+
prependData: `$color: red;`
9293
}
9394
}
9495
]

docs/zh/guide/pre-processors.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ module.exports = {
8888
loader: 'sass-loader',
8989
options: {
9090
// 你也可以从一个文件读取,例如 `variables.scss`
91-
data: `$color: red;`
91+
// 如果 sass-loader 版本 < 8,这里使用 `data` 字段
92+
prependData: `$color: red;`
9293
}
9394
}
9495
]

0 commit comments

Comments
 (0)