s3-plugin-webpack
s3-plugin-webpack copied to clipboard
Broken urls replacement
Issue Details
Using macOS 11.3.1
, node 16.0.0
and react-app-rewired
.
I'm facing a weird issue. I have my plugin config as below.
Trying to process only mp4
files.
What I'm getting instead is that my main js
files paths are being replaced, but files are not uploaded.
mp4
files are uploaded, but their urls are not replaced with the cdn paths.
const S3Plugin = require('webpack-s3-plugin');
module.exports = function override(config, env) {
config.plugins.push(
new S3Plugin({
include: /.*\.(mp4)/,
s3Options,
s3UploadOptions,
cdnizerOptions: {
defaultCDNBase: 'https://test.com',
}
})
);
return config;
}