yep, another less compiler
npm install lessby
lessby is a simple CLI tool for compiling .less file.
```
npm i lessby -D
`text
Usage: lessby [options]
Options:
-i, --input
-o, --output
-e, --extension
-b, --initial-build compile less files before watch
-r, --recursive compile less files recursively
-m, --minify minify output file
-s, --source-map generate source map files
--source-map-inline generate inline source map files
--one-time compile less files ony once
--mid-name
--less-options
-h, --help display help for command
`
required
Normally, lessby will watch all the .less files inside the input folder, this action is non-recursive.
`bash`
lessby -i
lessby will output the .css files into the folder that you specified.
`bash`
lessby -i
Seriously, it's not just CSS out there.
This will compile all the less files into CSS files with .wxss extension. You can use whatever extension you want.
`bash`
lessby -i
compile all the .less files once before watch
`bash`
lessby -i
FINALLY!!!
A less compiler with recursive option!
`bash`
lessby -i src -r
If src/ has a sub-folder, and it contains .less files, lessby will find it, and compile it.
As mentioned above, this parameter minifies output files.
`bash`
lessby -i src -r -m
lessby will generate source map files, those little things are helpful when in development.
`bash`
lessby -i src -s
lessby will generate inline source map, this will overwrite the -s option
`bash`
lessby -i src -s
lessby will compile all the .less files only once, could be used in building stage.
`bash`
lessby -i src --one-time
Script below will compile all the .less files from xxx.less to xxx.min.css.
`bash`
lessby -i
Since file extension names are customizable, I think I'll make the middle name part customizable too, you can compile
non-minified files with the name min in the middle, even if it is not recommended, but hey! Here we are!
And finally, the original lessc options.
Since this is a npm pack based on lessc`, So I think it'll be good in case you need something I didn't cover.