Skip to content

Commit

Permalink
additional comments
Browse files Browse the repository at this point in the history
  • Loading branch information
benholloway committed Dec 9, 2015
1 parent 43c33fc commit 5e0c50c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ function resolveUrlLoader(content, sourceMap) {
/* jshint validthis:true */

// details of the file being processed
// we would normally use compilation.getPath(options.output.path) to get the most correct outputPath,
// however we need to match to the sass-loader and it does not do so
var loader = this,
filePath = loader.context,
outputPath = path.resolve(loader.options.output.path); // support relative path edge-case
outputPath = path.resolve(loader.options.output.path);

// prefer loader query, else options object, else default values
var options = defaults(loaderUtils.parseQuery(loader.query), loader.options[camelcase(PACKAGE_NAME)], {
Expand Down

0 comments on commit 5e0c50c

Please sign in to comment.