0.3.0 • Published 9 years ago
wess v0.3.0
wess
Invokes the Less compiler in watch mode, triggering a recompilation whenever the source file or one of its (possibly indirect) import dependencies changes.
wess(path, options)
Receives the path to the source file and options to be passed into
less.render().
Returns an EventEmitter that emits the following events:
change(path)- when one of the watched files changeserror(err)- on compilation or watch errorcompile(output)- on successful compilation;outputis as forless.render().
Call stop() on the returned object to stop watching.