Skip to content

Commit

Permalink
Merge pull request #152 from sanniassin/master
Browse files Browse the repository at this point in the history
functions option support
  • Loading branch information
jhnns committed Oct 5, 2015
2 parents 2cd31db + b62ee83 commit a6cc46f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@ module.exports = function (content) {

opt.importer = getWebpackImporter();

// functions can't be set in query, load from sassLoader section in webpack options
if (this.options.sassLoader) {
opt.functions = this.options.sassLoader.functions;
}

// start the actual rendering
if (isSync) {
try {
Expand Down

0 comments on commit a6cc46f

Please sign in to comment.