mirror of
https://github.com/less/less.js.git
synced 2026-01-23 06:07:56 -05:00
Added --source-map-basepath option
This commit is contained in:
@@ -150,6 +150,11 @@ args = args.filter(function (arg) {
|
||||
options.sourceMapRootpath = match[2];
|
||||
}
|
||||
break;
|
||||
case 'source-map-basepath':
|
||||
if (checkArgFunc(arg, match[2])) {
|
||||
options.sourceMapBasepath = match[2];
|
||||
}
|
||||
break;
|
||||
case 'source-map-inline':
|
||||
options.outputSourceFiles = true;
|
||||
break;
|
||||
@@ -197,7 +202,7 @@ if (output) {
|
||||
}
|
||||
}
|
||||
|
||||
options.sourceMapBasepath = process.cwd();
|
||||
options.sourceMapBasepath = options.sourceMapBasepath || process.cwd();
|
||||
|
||||
if (options.sourceMap === true) {
|
||||
if (!output) {
|
||||
|
||||
@@ -53,6 +53,7 @@ var lessc_helper = {
|
||||
sys.puts(" format, and 'all' which will do both.");
|
||||
sys.puts(" --source-map[=FILENAME] Outputs a v3 sourcemap to the filename (or output filename.map)");
|
||||
sys.puts(" --source-map-rootpath=X adds this path onto the sourcemap filename and less file paths");
|
||||
sys.puts(" --source-map-basepath=X Sets sourcemap base path, defaults to current working directory.");
|
||||
sys.puts(" --source-map-inline puts the less files into the map instead of referencing them");
|
||||
sys.puts(" -rp, --rootpath=URL Set rootpath for url rewriting in relative imports and urls.");
|
||||
sys.puts(" Works with or without the relative-urls option.");
|
||||
|
||||
Reference in New Issue
Block a user