webpack-s3-uploader icon indicating copy to clipboard operation
webpack-s3-uploader copied to clipboard

Unwanted trailing slash added to basePath (addTrailingS3Sep should be optional ?)

Open ftrudeau opened this issue 5 years ago • 0 comments

Current usage

basePath set to commit hash, which is intended to be the base directory in S3. Ex: Set basePath to de40ad249, so that every assets are uploaded into that directory

Current behavior

basePath: de40ad249 Resulting basePath: de40ad249/ Resulting Key: de40ad249//assets/scripts/vendor.js

Note the additional trailing slash automatically appended by the tool, which is effectively creating an empty directory in S3.

Desired behavior

basePath: de40ad249 Resulting basePath: de40ad249 Resulting Key: de40ad249/assets/scripts/vendor.js

ftrudeau avatar Jan 12 '20 22:01 ftrudeau