clineamb / gulp-s3-upload

A gulp task to upload/update assets to an S3 account.
62 stars 37 forks source link

Overriding ContentType #35

Closed kaiwah closed 8 years ago

kaiwah commented 8 years ago

I noticed on the docs that it says ContentType does not need to be defined, and the plugin will filter out any attempts at changing it.

But for files where I have gzip compression, I need to set the Content-Type to "application/javascript" and "text/css" for ".jz.gz" and ".css.gz" respectively.

Can this be done at all with gulp-s3-upload

kaiwah commented 8 years ago

By default, all .gz extensions end up with "application/octet-stream" as the Content-Type which completely breaks the parsing

kaiwah commented 8 years ago

Nevermind I'm stupid, completely missed the mimeTypeLookup functionality. Closing this.

clineamb commented 8 years ago

@kaiwah No worries, let me know if I can help with anything else! (: