Closed yomed closed 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:
config
argument is the plugin configuration: https://github.com/lasso-js/lasso-less/blob/cbad9344bc3ce0d6f0dc2114888025a322abf57e/lib/dependency-less.js#L7I'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?
Sounds good, will send a PR soon
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
?