Created
January 10, 2016 22:23
-
-
Save tobek/ad6b25f5a0d1c8bdbf8e to your computer and use it in GitHub Desktop.
basic config for grunt-aws-s3 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// using https://github.com/MathieuLoutre/grunt-aws-s3 | |
aws_s3: { | |
options: { | |
accessKeyId: '<%= aws.key %>', | |
secretAccessKey: '<%= aws.secret %>', | |
// putting no region makes it default to US Standard | |
// debug: true, // do a dry run | |
uploadConcurrency: 5 | |
}, | |
production: { // run with "aws_s3:production" | |
options: { | |
bucket: '<%= aws.bucket %>', | |
}, | |
files: [{ | |
src: 'dist/**', | |
dest: '', | |
rel: 'dist', | |
params: { | |
// ContentEncoding: 'gzip', // this task doesn't gzip for you, so only enable this if files are gzipped first | |
CacheControl: 'public, max-age=86400', | |
Expires: new Date(Date.now() + 1000*60*60*24) | |
} | |
}] | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment