wilson428 / node-lessify

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

Enable `textMode` option with browserify.transform API #12

Closed thom4parisot closed 9 years ago

thom4parisot commented 9 years ago

So as browserify().transform('node-lessify', { textMode: true }) can work.

thom4parisot commented 9 years ago

package.json is not read when you programmatically use browserify (and at least, you need a way to disable an option if multiple builds requires different configurations for the same project).

wilson428 commented 9 years ago

Oh for sure -- but whether the options are passed through package, the API or the CLI, they should all show up in package_options, which is poorly named on my part.

What a headache to have a module invoked from three different environments!

On Fri, Jan 30, 2015 at 12:38 PM, Thomas Parisot notifications@github.com wrote:

package.json is not read when you programmatically use browserify (and at least, you need a way to disable an option if multiple builds requires different configurations for the same project).

— Reply to this email directly or view it on GitHub https://github.com/wilson428/node-lessify/pull/12#issuecomment-72239215.

christopher.e.wilson@gmail.com 434.242.9728