[Pkg-javascript-commits] [less.js] 140/285: Add an option to get the input filename
Jonas Smedegaard
dr at jones.dk
Mon Oct 26 23:23:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag v2.0.0
in repository less.js.
commit d4415a567aed953b8e94f5b8fe7aafdee80e80b0
Author: Luke Page <luke.a.page at gmail.com>
Date: Sat Oct 4 13:50:30 2014 +0100
Add an option to get the input filename
---
lib/less/source-map-builder.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/less/source-map-builder.js b/lib/less/source-map-builder.js
index 826533e..3cd382f 100644
--- a/lib/less/source-map-builder.js
+++ b/lib/less/source-map-builder.js
@@ -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;
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git
More information about the Pkg-javascript-commits
mailing list