MikaAK / s3-plugin-webpack

Uploads files to s3 after complete
MIT License
486 stars 125 forks source link

option directory How to specify multiple directories #157

Open yaowei520 opened 3 years ago

yaowei520 commented 3 years ago

plugins: [ new S3Plugin({ basePath:'static', directory:'public/css|js|icon|fonts', // s3Options are required s3Options: { accessKeyId: process.env.AWS_ACCESS_KEY_CN_ID, secretAccessKey: process.env.AWS_SECRET_ACCESS_CN_KEY, region: process.env.AWS_DEFAULT_CN_REGION }, s3UploadOptions: { Bucket: process.env.AWS_CN_BUCKET } }) ]

shankar-bavan commented 3 years ago

I'm also looking for a solution to specify multiple directory.

MikaAK commented 3 years ago

Currently there's no way to do multiple upload directories, I would suggest using something like CopyAssetsPlugin to move the final assets into one folder to upload, otherwise a PR is welcome 😄