Closed anfuerer closed 8 years ago
It is indeed possible
s3 is a multitask so you can provide task options and then also provide target level options which override task options
s3: {
options: {
accessKeyId: "<%= aws.accessKeyId %>",
secretAccessKey: "<%= aws.secretAccessKey %>"
},
//then create some targets..
staging: {
options: {
bucket: "my-staging-bucket"
},
cwd: "build/",
src: "**"
}
Then the s3 task can be run as follows
grunt s3:staging
Edit: Hit submit early
@jpillora all clear. thanks for the hint.
Would it be possible to extend the config in a way that different environments can be supported?
I'm thinking about sth like the following:
Then the s3 task can be run as follows