lasso-js / lasso-less

Lasso.js plugin to support compilation of less dependencies
7 stars 10 forks source link

support strictMath config for less #13

Closed yomed closed 8 years ago

yomed commented 8 years ago

I'd like to enable the --strict-math setting in less. Is there some way to pass in generic config through the pluginConfig object? Or would lasso-less need to explicitly support it like config.urlResolver?

patrick-steele-idem commented 8 years ago

Hi @yomed, that would be a nice thing to support and it would not be too difficult. How about we add support for a lessConfig option that would be an object that we pass directly to less? Here's the relevant code:

I'm thinking the following:

var parseConfig = {
    filename: 'lasso.less',
    paths: [process.cwd()]
};
if (config.lessConfig) {
    extend(parseConfig, config.lessConfig);
}

If you are able to make and test this change that would be very helpful. Thoughts?

yomed commented 8 years ago

Sounds good, will send a PR soon