mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
Add an option to get the input filename
This commit is contained in:
@@ -23,6 +23,7 @@ module.exports = function (SourceMapOutput) {
|
||||
var css = sourceMapOutput.toCSS(options);
|
||||
this.sourceMap = sourceMapOutput.sourceMap;
|
||||
this.sourceMapURL = sourceMapOutput.sourceMapURL;
|
||||
this.sourceMapInputFilename = sourceMapOutput.normalizeFilename(this.options.sourceMapInputFilename);
|
||||
return css;
|
||||
};
|
||||
|
||||
@@ -42,6 +43,9 @@ module.exports = function (SourceMapOutput) {
|
||||
SourceMapBuilder.prototype.getOutputFilename = function() {
|
||||
return this.options.sourceMapOutputFilename;
|
||||
};
|
||||
SourceMapBuilder.prototype.getInputFilename = function() {
|
||||
return this.sourceMapInputFilename;
|
||||
};
|
||||
|
||||
return SourceMapBuilder;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user