webpack-s3-sync-plugin
v0.1.3
Published
Syncs compiled assets to s3 after build
Downloads
7
Maintainers
Readme
S3 Sync Plugin
This plugin syncs all built assets to s3
Install Instructions
$ npm i webpack-s3-sync-plugin
Note: This plugin needs NodeJS > 0.12.0
Usage Instructions
Require webpack-s3-sync-plugin
var S3Plugin = require('webpack-s3-sync-plugin')
var config = {
plugins: [
new S3Plugin({
// s3Options are required
s3Options: {
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
region: 'us-west-1'
},
s3UploadOptions: {
Bucket: 'MyBucket'
}
})
]
}