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

Add option to replace files without creating backups #2

Closed
niyazpk opened this issue Dec 11, 2012 · 2 comments
Closed

Add option to replace files without creating backups #2

niyazpk opened this issue Dec 11, 2012 · 2 comments

Comments

@niyazpk
Copy link

niyazpk commented Dec 11, 2012

Right now if my grunt looks like this:

imagemin: {
  dist: {
    files: {
      'html/img/compressed/cart.png': 'html/img/cart.png',
    }
  }
}

.. and if I run the task multiple times, a file with name cart.png.bak is created in the compressed directory. Please consider adding an option to turn this off.

(Or is this an option that can be passed to OptiPNG? In that case the documentation should mention that).

@hugomrdias
Copy link

this would be nice
i have to setup another task to delete those :D

@jeffwhelpley
Copy link

I agree with this. When you have an build script that you have tested and know it works, you don't need to create extra backups.

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

4 participants