-
Notifications
You must be signed in to change notification settings - Fork 170
accept a function for sourceMapURL #307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@montmanu: can you rebase? |
tasks/less.js
Outdated
| } | ||
| } | ||
|
|
||
| if (_.isBoolean(options.sourceMap) && options.sourceMap) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typeof options.sourceMap === 'boolean'
tasks/less.js
Outdated
| } | ||
| } | ||
|
|
||
| if (_.isFunction(options.sourceMapURL)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't typeof options.sourceMapURL === 'function' enough here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably. just figured since lodash had already been imported, would use that utility. would you prefer typeof ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just trying to decouple of lodash and just keep stuff we only need.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, cool. will update with typeof here and in the other PR.
No description provided.