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

Broken urls replacement

Open orangecoloured opened this issue 3 years ago • 0 comments

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;
}

orangecoloured avatar May 05 '21 08:05 orangecoloured