2.1.0 • Published 8 years ago

less-watch-compile v2.1.0

Weekly downloads
92
License
MIT
Repository
github
Last release
8 years ago

less-watch-compile

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

Installation

Install from npm

npm i less-watch-compile

Usage

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

--watch-directory, -w Directory to watch. Defaults to current directory if none is specified string
--output-directory, -o Directory to output compiled LESS to string
--file, -f Single file to watch string
--sourcemap, -m Enable generating of sourcemap boolean

Note, if both ---watch-directory and --file are used, --watch-directory will be ignored

Example Usage

Parent
|----src
|--------main.less
|----public
|--------styles
|------------main.css
|------------main.css.map
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

To include a sourcemap with main.css, use

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

Todos

  • Reduce delay in changes detection

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

2.1.0

License

MIT

2.1.0

8 years ago

2.0.0

8 years ago

1.1.8

10 years ago

1.1.7

10 years ago

1.1.6

10 years ago

1.1.5

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago