[Pkg-javascript-commits] [less.js] 198/285: improve some of the source map options

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:23:53 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 e02449b656084d519528b4888cb1e36d79c87354
Author: Luke Page <luke.a.page at gmail.com>
Date:   Sun Oct 19 21:00:19 2014 +0100

    improve some of the source map options
---
 bin/lessc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/bin/lessc b/bin/lessc
index b4e3a4a..fe963d7 100755
--- a/bin/lessc
+++ b/bin/lessc
@@ -292,9 +292,11 @@ if (options.sourceMap) {
     }
 }
 
-sourceMapOptions.sourceMapBasepath = sourceMapOptions.sourceMapBasepath || (input ? path.dirname(input) : process.cwd());
+if (sourceMapOptions.sourceMapBasepath === undefined) {
+    sourceMapOptions.sourceMapBasepath = input ? path.dirname(input) : process.cwd();
+}
 
-if (!sourceMapOptions.sourceMapRootpath) {
+if (sourceMapOptions.sourceMapRootpath === undefined) {
     var pathToMap = path.dirname(sourceMapFileInline ? output : sourceMapOptions.sourceMapFullFilename),
         pathToInput = path.dirname(sourceMapOptions.sourceMapInputFilename);
     sourceMapOptions.sourceMapRootpath = path.relative(pathToMap, pathToInput);

-- 
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