diff options
Diffstat (limited to 'node_modules/clean-css/lib/reader/rebase-local-map.js')
-rw-r--r-- | node_modules/clean-css/lib/reader/rebase-local-map.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/node_modules/clean-css/lib/reader/rebase-local-map.js b/node_modules/clean-css/lib/reader/rebase-local-map.js deleted file mode 100644 index aec8d2324..000000000 --- a/node_modules/clean-css/lib/reader/rebase-local-map.js +++ /dev/null @@ -1,15 +0,0 @@ -var path = require('path'); - -function rebaseLocalMap(sourceMap, sourceUri, rebaseTo) { - var currentPath = path.resolve(''); - var absoluteUri = path.resolve(currentPath, sourceUri); - var absoluteUriDirectory = path.dirname(absoluteUri); - - sourceMap.sources = sourceMap.sources.map(function(source) { - return path.relative(rebaseTo, path.resolve(absoluteUriDirectory, source)); - }); - - return sourceMap; -} - -module.exports = rebaseLocalMap; |