-
Notifications
You must be signed in to change notification settings - Fork 770
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix lessc after breakage by node 6 update.
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
PORTNAME= lessc | ||
PORTVERSION= 2.5.1 | ||
DISTVERSIONPREFIX= v | ||
PORTREVISION= 1 | ||
CATEGORIES= www devel | ||
|
||
MAINTAINER= [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- bin/lessc.orig 2017-05-02 22:40:55 UTC | ||
+++ bin/lessc | ||
@@ -316,8 +316,8 @@ function printUsage() { | ||
} | ||
|
||
if (sourceMapOptions.sourceMapRootpath === undefined) { | ||
- var pathToMap = path.dirname(sourceMapFileInline ? output : sourceMapOptions.sourceMapFullFilename), | ||
- pathToInput = path.dirname(sourceMapOptions.sourceMapInputFilename); | ||
+ var pathToMap = path.dirname(sourceMapFileInline ? output : sourceMapOptions.sourceMapFullFilename || '.'), | ||
+ pathToInput = path.dirname(sourceMapOptions.sourceMapInputFilename || '.'); | ||
sourceMapOptions.sourceMapRootpath = path.relative(pathToMap, pathToInput); | ||
} | ||
|
||
@@ -484,4 +484,4 @@ function printUsage() { | ||
parseLessFile(false, buffer); | ||
}); | ||
} | ||
-})(); | ||
\ No newline at end of file | ||
+})(); |