mirror of
https://github.com/less/less.js.git
synced 2026-01-22 21:58:14 -05:00
Adding support for absolute paths on Windows.
This commit is contained in:
@@ -65,11 +65,11 @@ args = args.filter(function (arg) {
|
||||
});
|
||||
|
||||
var input = args[1];
|
||||
if (input && input[0] != '/' && input != '-') {
|
||||
if (input && input[0] != '/' && input != '-' && input[1] != ':') {
|
||||
input = path.join(process.cwd(), input);
|
||||
}
|
||||
var output = args[2];
|
||||
if (output && output[0] != '/') {
|
||||
if (output && output[0] != '/' && input[1] != ':') {
|
||||
output = path.join(process.cwd(), output);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user