source: imaps-frontend/node_modules/clean-css/lib/reader/rebase-remote-map.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 330 bytes
RevLine 
[79a0317]1var path = require('path');
2var url = require('url');
3
4function rebaseRemoteMap(sourceMap, sourceUri) {
5 var sourceDirectory = path.dirname(sourceUri);
6
7 sourceMap.sources = sourceMap.sources.map(function(source) {
8 return url.resolve(sourceDirectory, source);
9 });
10
11 return sourceMap;
12}
13
14module.exports = rebaseRemoteMap;
Note: See TracBrowser for help on using the repository browser.