grunt-contrib-copy icon indicating copy to clipboard operation
grunt-contrib-copy copied to clipboard

Audio files are breaking :'(

Open msqaddura opened this issue 7 years ago • 1 comments

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

  1. putting process everywhere in the structure --> only worked in options inside main but for example not inside one of the jsons inside files array
  2. return contect directly and not returning anything

Thanks in advance <3

msqaddura avatar Oct 06 '17 14:10 msqaddura

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

msqaddura avatar Oct 06 '17 15:10 msqaddura