diff options
Diffstat (limited to 'node_modules/clean-css/lib/reader/apply-source-maps.js')
-rw-r--r-- | node_modules/clean-css/lib/reader/apply-source-maps.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node_modules/clean-css/lib/reader/apply-source-maps.js b/node_modules/clean-css/lib/reader/apply-source-maps.js index d2f87250e..7c5a9282b 100644 --- a/node_modules/clean-css/lib/reader/apply-source-maps.js +++ b/node_modules/clean-css/lib/reader/apply-source-maps.js @@ -2,7 +2,6 @@ var fs = require('fs'); var path = require('path'); var isAllowedResource = require('./is-allowed-resource'); -var loadRemoteResource = require('./load-remote-resource'); var matchDataUri = require('./match-data-uri'); var rebaseLocalMap = require('./rebase-local-map'); var rebaseRemoteMap = require('./rebase-remote-map'); @@ -17,6 +16,7 @@ var MAP_MARKER_PATTERN = /^\/\*# sourceMappingURL=(\S+) \*\/$/; function applySourceMaps(tokens, context, callback) { var applyContext = { callback: callback, + fetch: context.options.fetch, index: 0, inline: context.options.inline, inlineRequest: context.options.inlineRequest, @@ -151,7 +151,7 @@ function loadInputSourceMapFromRemoteUri(uri, applyContext, whenLoaded) { return whenLoaded(null); } - loadRemoteResource(uri, applyContext.inlineRequest, applyContext.inlineTimeout, function (error, body) { + applyContext.fetch(uri, applyContext.inlineRequest, applyContext.inlineTimeout, function (error, body) { if (error) { applyContext.warnings.push('Missing source map at "' + uri + '" - ' + error); return whenLoaded(null); |