wilson428 / node-lessify

LESS precompiler plugin for Browserify v2
MIT License
24 stars 13 forks source link

Parse errors don't throw errors, they silently hang #8

Closed chrisjhoughton closed 9 years ago

chrisjhoughton commented 9 years ago

After calling less.render, if there's an issue with the CSS added, no error will be emitted by the module, it will just get no further.

Need to add handler here: https://github.com/wilson428/node-lessify/blob/master/index.js#L57

wilson428 commented 9 years ago

Just took a pass at this. Don't recall what I thought that try {} catch {} was accomplishing. You can test the error catch by running test/error.js, which will attempt to compile an error-ridden LESS file named nonsense.less.

chrisjhoughton commented 9 years ago

Nice one!!!

wilson428 commented 9 years ago

Closing and publishing to NPM as v0.0.7!