Skip to content

A nodejs script that allows you to watch a folder for changes and compile the less css files into another folder.

License

Notifications You must be signed in to change notification settings

opsydev/Dead-Simple-LESS-Watch-Compiler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Dead Simple LESS Watch Compiler

A nodejs script that allows you to watch a folder for changes and compile the less css files into another folder.

Always give credit where it's due. Parts of this script is modified from Mikeal Rogers's watch script (https://github.com/mikeal/watch)

###Prerequisites Install LESS (http://www.lesscss.org/) and make sure the lessc binary is accessible to the script. Installing LESS with the --global flag will make the binary accessible to your system.

npm install less --global

###Usage

node less-watch-compiler.js FOLDER_TO_WATCH FOLDER_TO_OUTPUT

###Example "node less-watch-compiler.js less css" will watch the ./less folder and compile the LESS CSS files into ./css when they are added/changed.

About

A nodejs script that allows you to watch a folder for changes and compile the less css files into another folder.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%