Open yaowei520 opened 3 years ago
I'm also looking for a solution to specify multiple directory.
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 😄
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 } }) ]