grunt-contrib-copy
grunt-contrib-copy copied to clipboard
Images and webfont file getting corrupt although the noProcess is configured
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
Is it possible the noProcess
field doesn't support glob patterns? Try [ '**/*.png', '**/*.gif', ... ]
.
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