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

1:many #28

Open
strarsis opened this issue Jan 4, 2016 · 1 comment
Open

1:many #28

strarsis opened this issue Jan 4, 2016 · 1 comment

Comments

@strarsis
Copy link

strarsis commented Jan 4, 2016

There is also the case (like gulp-favicons) that a plugin takes one file and outputs multiple file (1:many).
I also got an array with output filenames. How can I use it with gulp-newer?

@TimMensch
Copy link
Contributor

If one file always generates all of the outputs every time you run the task, then you can just pick the first output and use a degenerate many:1 mapping: You'd be telling it one input file and one output file. Since all the output files are changed at the same time, it doesn't matter which one you pick.

If your tool only updates modified files, then this won't work, but in that case you really don't need gulp-newer.

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