Open tjgavlick opened 7 years ago
@tjgavlick Did you ever find a solution to this? I'm running into the issue when passing an already compressed image to it.
@richjdsmith I'm afraid I never did, no. Ended up just living with it, since the functionality is still intact, at least. But I've been meaning to check around for alternative optimization solutions.
Hi there! Thanks for the extremely useful plugin.
My issue is that when no images are passed through to this plugin (for example, filtering via newer after a delete event), I get a console error:
Gulp does not exit and subsequent watch events execute properly, so functionally, everything is working fine. Just wondering if this error can be accounted for so my users don't get alarmed by scary-looking errors in their consoles. Or, if there's a way I should be handling this error on my side, let me know.
edit: for reference, I am using
pump
in place ofpipe
. Here's my imageOptim task: