Skip to content
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

Merged
merged 2 commits into from Apr 23, 2018
Merged

Css globs #81

merged 2 commits into from Apr 23, 2018

Conversation

morrislaptop
Copy link
Contributor

@morrislaptop morrislaptop commented Apr 23, 2018

Proposed changes

Fix #80

Types of changes

  • Bugfix (non-breaking change which fixes an issue)

Checklist

  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

cssOptions = cssOptions.map(option => {
return typeof option === 'string' ? glob.sync(option) : option
})
cssOptions = [].concat.apply([], cssOptions)
Copy link
Member

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()

Copy link
Contributor Author

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...

Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

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

@jsnanigans
Copy link
Member

@Ffloriel could you review and merge this please?

@Ffloriel Ffloriel self-requested a review April 23, 2018 19:15
Copy link
Member

@Ffloriel Ffloriel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Ffloriel Ffloriel merged commit 5b01959 into FullHuman:master Apr 23, 2018
@Ffloriel
Copy link
Member

Thanks for the issue and PR

@morrislaptop morrislaptop deleted the css-globs branch April 23, 2018 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Globs don't work from the configuration file
3 participants