Skip to content

Commit b9a318d

Browse files
author
Taras Shabatyn
authored
Fix URL path of Sourcemap(.map) files
1 parent f824b9e commit b9a318d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dev/tools/grunt/configs/less.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ var lessOptions = {
2222
sourceMap: true,
2323
strictImports: false,
2424
sourceMapRootpath: '/',
25+
sourceMapBasepath: function (f) {
26+
this.sourceMapURL = this.sourceMapFilename.substr(this.sourceMapFilename.lastIndexOf('/') + 1);
27+
return "/";
28+
},
2529
dumpLineNumbers: false, // use 'comments' instead false to output line comments for source
2630
ieCompat: false
2731
},

0 commit comments

Comments
 (0)