grunt-contrib-copy
grunt-contrib-copy copied to clipboard
Audio files are breaking :'(
copy: {
main: {
files: [
{src: ['something/**'], dest: 'output/'},
{src: ['anotherthing/**'], dest: 'output/'},
],
options: {
process: function (content, srcpath) {
return content; // to keep it short lets just return content as is
},
},
},
if an .mp3 file is passed there the process function breaks the file :( i could think of it as an EOF or encoding problem but it is a bit uncomfy to dig around and see the where and which causes the problem. Do we have a quickie fix for that issue? or someone face the same thing I am having?
I tried so far
- putting process everywhere in the structure --> only worked in options inside main but for example not inside one of the jsons inside files array
- return contect directly and not returning anything
Thanks in advance <3
I will leave it here in case someone had the same issue but please check this one https://github.com/gruntjs/grunt-contrib-copy/issues/278