diff --git a/lib/loader.js b/lib/loader.js index 7574ba15..b8c97455 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -98,7 +98,7 @@ module.exports = function(content, map) { if(map.sources) { map.sources = map.sources.map(function(source) { source = source.split("!").pop(); - var p = path.relative(query.context || this.options.context, source).replace(/\\/g, "/"); + var p = path.relative(query.context || this.options.context || this.context, source).replace(/\\/g, "/"); if(p.indexOf("../") !== 0) p = "./" + p; return "/" + p;