code: function mail() {
    var awsURL = !!CONFIG && !!CONFIG.aws && !!CONFIG.aws.url ? CONFIG.aws.url : false;
  
    if (EMAIL) {
      CONFIG.mail.to = [EMAIL];
    }
  
    return gulp.src('dist/**/*.html')
      .pipe($.if(!!awsURL, $.replace(/=('|")(\/?assets\/img)/g, "=$1"+ awsURL)))
      .pipe($.mail(CONFIG.mail))
      .pipe(gulp.dest('dist'));
  }
docs: Send email to specified email for testing. If no AWS creds then do not replace img urls.