Skip to content

Commit a6cc46f

Browse files
committed
Merge pull request #152 from sanniassin/master
functions option support
2 parents 2cd31db + b62ee83 commit a6cc46f

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
@@ -239,6 +239,11 @@ module.exports = function (content) {
239239

240240
opt.importer = getWebpackImporter();
241241

242+
// functions can't be set in query, load from sassLoader section in webpack options
243+
if (this.options.sassLoader) {
244+
opt.functions = this.options.sassLoader.functions;
245+
}
246+
242247
// start the actual rendering
243248
if (isSync) {
244249
try {

0 commit comments

Comments
 (0)