MathieuLoutre / grunt-aws-s3

Grunt plugin to interact with AWS S3 using the AWS SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exclude on Upload

moisesrodriguez opened this issue · comments

I notice that exclude is not included in upload. Currently I'm doing this:

{expand: true, cwd: 'bin/assets/', src: ['**'], dest: 'assets/', stream: true, differential: true}

but would like to do something like, so I can exclude to upload .map files.

{expand: true, cwd: 'bin/assets/', src: ['**'], dest: 'assets/', exclude: '**/*.map',  stream: true, differential: true},

It would be great if this functionality is added

@moisesrodriguez You can do this instead:

{ expand: true, cwd: 'bin/assets/', src: ['**', '!*.map'], dest: 'assets/', stream: true, differential: true }

@sumeetattree excellent! Thank you