Skip to content

Commit

Permalink
Use path.basename for sourceMappingURL. (#322)
Browse files Browse the repository at this point in the history
Now the sourceMappingURL will be the same as the CSS file, if not specified.
  • Loading branch information
XhmikosR committed Aug 9, 2016
1 parent 5501c3b commit 924189e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/less.js
Expand Up @@ -115,7 +115,7 @@ module.exports = function(grunt) {
}

if (options.sourceMap && !options.sourceMapFileInline && !options.sourceMapFilename) {
options.sourceMapFilename = destFile + '.map';
options.sourceMapFilename = path.basename(destFile) + '.map';
}

if (typeof options.sourceMapBasepath === 'function') {
Expand Down

0 comments on commit 924189e

Please sign in to comment.