-
Notifications
You must be signed in to change notification settings - Fork 52
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
Not working with grunt-contrib-imagemin #9
Comments
@evanmcd please reopen if you can provide some additional information to reproduce your issue. I'm happy to dig into the problem if I can reproduce it. |
Hi, sorry for the delay getting back to you. I've submitted a pull request with the update that displays the issue. You'll just need to run
before running the test again Not sure what would be causing the issue with copy... strange. Thanks for looking into it. |
Thanks for update. I'll take a look soon. |
Ok, the issue is that your copy task first copies the images from the source to destination directory. When you run the The solution is to exclude the images from your You could also run the See https://github.com/tschaub/test-grunt-newer-imagemin/commit/e2fac366d2767a4bf2668d7c7f0e439c34c99cd0 for an example of both the |
OK, I get it now. I didn't realize that the compare newer does is based on two directories. I thought it was based on the history of the file itself, using info saved in a cache file (previously modified date, or size or both perhaps). Thanks a lot for your help in figuring this out. |
Yeah, I understand the confusion. Here is the logic: If a task is configured with both If a task is configured with That's it (roughly). I've made some changes to support a new task that compares files based on md5sum (see #5). I'm inclined to call this task |
Given that it works with other contrib plugins, like copy and uglify, it would be great if it worked with imagemin.
Here's my imagemin config:
and my registerTask:
Thanks.
The text was updated successfully, but these errors were encountered: