I am using the "grunt-contrib-copy": "^1.0.0" and the copied binary files are getting damaged, Please look at my grunt configuration and help me on this.
copy: {
options: {
// exclude binary format from the processContent function
processContentExclude: [
'**/*.{png,gif,jpg,ico,psd,ttf,otf,woff,svg}'
]
},
main: {
files: [{
expand: true,
cwd: '<%= options.src %>',
src: ['**/*.json', '**/*.htm*', '**/*.png'],
dest: '<%= options.targets.dist %>'
},
{
expand: true,
cwd: '<%= options.resources %>',
src: ['**/*.png'],
dest: '<%= options.targets.dist %>',
options: {
options: {
processContentExclude: ['**/*.{png,gif,jpg,ico,psd}']
}
}
}]
}
},
In
[email protected]theprocessContentExcludeoption has been renamed to noProcess. Youroptionsobject should be:I also assume that somewhere else in your configuration, (although not included in the OP), you might be using the
processContentoption - hence the corruption. Note, that theprocessContentoption has been renamed to process so you'll need to rename that too. E.g.