Skip to content

Commit 8001974

Browse files
committed
update some sourcemap options
1 parent bc959a8 commit 8001974

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

content/usage/command-line-usage.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ lessc --source-map-rootpath=dev-files/
188188

189189
Specifies a rootpath that should be prepended to each of the less file paths inside the sourcemap and also to the path to the map file specified in your output css.
190190

191+
Because the basepath defaults to the directory of the input less file, the rootpath defaults to the path from the sourcemap output file to the base directory of the input less file.
192+
191193
Use this option if for instance you have a css file generated in the root on your web server but have your source less/css/map files in a different folder. So for the option above you might have
192194

193195
```bash
@@ -202,7 +204,9 @@ dev-files/main.less
202204
lessc --source-map-basepath=less-files/
203205
```
204206

205-
This is the opposite of the rootpath option, it specifies a path which should be removed from the output paths. For instance if you are compiling a file in the less-files directory but the source files will be available on your web server in the root or current directory, you can specify this to remove the additional `less-files` part of the path
207+
This is the opposite of the rootpath option, it specifies a path which should be removed from the output paths. For instance if you are compiling a file in the less-files directory but the source files will be available on your web server in the root or current directory, you can specify this to remove the additional `less-files` part of the path.
208+
209+
It defaults to the path to the input less file.
206210

207211
#### Source Map Less Inline
208212

0 commit comments

Comments
 (0)