File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ Note that `sass-loader` processes the non-indent-based `scss` syntax by default.
88
88
loader: ' sass-loader' ,
89
89
options: {
90
90
// 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;`
92
93
}
93
94
}
94
95
]
Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ module.exports = {
88
88
loader: ' sass-loader' ,
89
89
options: {
90
90
// вы можете также указать файл, например `variables.scss`
91
- data: ` $color: red;`
91
+ // use `data` here if sass-loader version < 8
92
+ prependData: ` $color: red;`
92
93
}
93
94
}
94
95
]
Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ module.exports = {
88
88
loader: ' sass-loader' ,
89
89
options: {
90
90
// 你也可以从一个文件读取,例如 `variables.scss`
91
- data: ` $color: red;`
91
+ // 如果 sass-loader 版本 < 8,这里使用 `data` 字段
92
+ prependData: ` $color: red;`
92
93
}
93
94
}
94
95
]
You can’t perform that action at this time.
0 commit comments