grunt-contrib-copy
grunt-contrib-copy copied to clipboard
Add mtimeUpdate parameter
Currently, when copying a file from src to dest with grunt-contrib-copy the last modified time of the file is not updated.
It would be nice to have the ability to force updating this value as to play nice with grunt:newer. See: https://github.com/tschaub/grunt-newer/issues/84
This PR introduces a new option to, mtimeUpdate which, if set to true, will force the copied file's mtime to be set to the current time.
Any reason for closing without discussion?
Hey @MeoMix could you rebase this PR and add documentation for the options under docs/ ?
Sure. I'll try and take a look at it this weekend to ensure it's still necessary/useful. Thanks!
It took me a lot of time to notice that the mtime was not modified and I wanted to know why the Makefile was running the task multiple times. It is quite sad to see that a PR existed to fix this but was not merged more than 4 years later.