Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images and webfont file getting corrupt although the noProcess is configured #278

Open
xiamu14 opened this issue Jun 16, 2016 · 2 comments

Comments

@xiamu14
Copy link

xiamu14 commented Jun 16, 2016

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

@peterjanes
Copy link

peterjanes commented Apr 26, 2017

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

@msqaddura
Copy link

msqaddura commented Oct 6, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants