watcher-lessc
Watch .less file
& directory
to compile to .css whenever file is saved.
Now ,You can :
- Specify search paths for @import directives.
- Minify CSS output.
- Specify a filename, for better error messages.
- Specify input directory to watch.
But , You must specify input
& output
!
Install
npm install -g watcher-lessc
Usage
-
Help documents
watcher-lessc Usage: {OPTIONS} Options: --input, -i Specify input file to watch/compile. [required] --paths, -p Specify search paths for @import directives. [default: []] --compress, -c Minify CSS output. --filename, -f Specify a filename, for better error messages. [default: "style.less"] --directory, -d Specify input directory to watch. --output, -o Specify output file path. [required] --help, -h Show this message
-
Specify input
.less
file & output.css
filewatcher-lessc -i less/index.less -o css/inde.css
-
Specify input directory to watch.
watcher-lessc -i less/index.less -o css/inde.css -d ./less
-
Specify less render options
watcher-lessc -i less/index.less -o css/inde.css -d ./less -p ./less -f style.less -c
Contact
If you have some questions, please email: liuhong1.happy@163.com .