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

Images and webfont file getting corrupt although the noProcess is configured

Open xiamu14 opened this issue 8 years ago • 2 comments

copy: { options: { // exclude binary format from the processContent function noProcess: [ '**/*.{png,gif,jpg,ico,psd,ttf,otf,woff,svg}' ] }, libs: { expand: true, cwd: '/test/src/home/', src: '**', dest: '/test/dist/', }, }, this is my code, but imgage get corrupt

xiamu14 avatar Jun 16 '16 13:06 xiamu14

Is it possible the noProcess field doesn't support glob patterns? Try [ '**/*.png', '**/*.gif', ... ].

peterjanes avatar Apr 26 '17 15:04 peterjanes

I had same issue with .mp3 files, @peterjanes suggestion is correct I have noticed that 'copy' uses 'grunt.file.copy', which uses 'path.join'. But I cannot see here anywhere for options https://nodejs.org/api/path.html#path_path_join_paths

msqaddura avatar Oct 06 '17 14:10 msqaddura