npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

less-watch-compile

1.1.8 • Public • Published

less-watch-compile

Watch specified directory or file for changes to LESS files, and save the generated CSS where specified

Installation

Install from the npm registry

npm i less-watch-compile

Usage

node node_modules/less-watch-compile -w <dir> -o <dir> -f <path>

-o, --outputDir Define what directory to output compiled LESS to [REQUIRED]
-w, --watchDir Specify what directory to watch [Defaults to '/']
-f, --file Specify a particular file to watch, rather than watching an entire directory
-s, --safetyOff Add flag to disable checking for underscore ( _ ) preceding filenames [Defaults to false]
Note, if both ---watchDir and --file are used, --watchDir will be ignored

Example Usage

Parent
|----src
|--------main.less
|----public
|--------styles
|------------main.css
In the example directory above, the contents src/ can be compiled to public/styles/ using

node node_modules/less-watch-compile -w src -o public/styles

To only watch for main.less, use

node node_modules/less-watch-compile -f src/main.less -o public/styles

Todos

  • Set up check to ignore LESS files that are imports of another LESS file

Bugs

If you find any bugs, please submit an issue. This project is still in a early stage, and any feedback would greatly help! :)

Version

1.1.8

License

MIT

install

npm i less-watch-compile

Downloadsweekly downloads

40

version

1.1.8

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability