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

Support file globbing patterns #2

Closed
Mottie opened this issue Sep 1, 2016 · 1 comment
Closed

Support file globbing patterns #2

Mottie opened this issue Sep 1, 2016 · 1 comment

Comments

@Mottie
Copy link
Contributor

Mottie commented Sep 1, 2016

In an attempt to use this plugin on multiple files, I could not get any of the file formats or globbing patterns to work - I only see errors.

Running "stripJsonComments:src" (stripJsonComments) task
Warning: Unable to read "src/a.js,src/b.js,src/c.js" file (Error code: ENOENT). Use --force to continue.

Am I missing something?

I'm not familiar with Grunt plugins, so I wouldn't know what changes were needed to submit a PR.

@sindresorhus
Copy link
Owner

See: http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically

You need to set expand: true.

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

No branches or pull requests

2 participants