Skip to content

Commit b62ee83

Browse files
sanniassinsanniassin
authored andcommitted
load functions from sassLoader section
1 parent 74deeb7 commit b62ee83

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ module.exports = function (content) {
233233

234234
opt.importer = getWebpackImporter();
235235

236+
// functions can't be set in query, load from sassLoader section in webpack options
237+
if (this.options.sassLoader) {
238+
opt.functions = this.options.sassLoader.functions;
239+
}
240+
236241
// start the actual rendering
237242
if (isSync) {
238243
try {

0 commit comments

Comments
 (0)