Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken urls replacement #160

Open
orangecoloured opened this issue May 5, 2021 · 0 comments
Open

Broken urls replacement #160

orangecoloured opened this issue May 5, 2021 · 0 comments

Comments

@orangecoloured
Copy link

orangecoloured commented May 5, 2021

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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant