Npm run mail - runs but no image url replacement


I have another question I’m hoping someone can help with.

I have completed a config.json and set up AWS and SMTP details.

When I run npm run mail everything appears to run successfully - my images are uploaded to the correct bucket on AWS but for some reason, the image URLs are not replaced.

The CLI (screenshot attached) gives no error so I don’t know what else to try. Have I missed an obvious setting somewhere or is this a known issue.

Not sure if it is relevant, the “skip” messages are probably from the gulp-awspublish package:

The actual replacement is done in the dist folder on each html file:

Is the aws.url field set in the config?

You might want to debug this with some console.log statements.

Oh and the assets/img path should be in the generated files otherwise this RegEx might not work: