-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
Css globs #81
Css globs #81
Conversation
cssOptions = cssOptions.map(option => { | ||
return typeof option === 'string' ? glob.sync(option) : option | ||
}) | ||
cssOptions = [].concat.apply([], cssOptions) |
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.
could we maybe use the native Array.prototype.flatten()
method instead of that hack?
if the depth is only 1 this should work:
...
}).flatten()
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.
@jsnanigans I was trying that originally, but it's not in node yet...
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.
huh strange but OK then
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.
yes, the proposal is still ongoing https://developers.google.com/web/updates/2018/03/smooshgate
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 really hope they don't call it smoosh
@Ffloriel could you review and merge this please? |
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.
LGTM
Thanks for the issue and PR |
Proposed changes
Fix #80
Types of changes
Checklist