I'm migrating from grunt to gulp and looking to use gulp-processhtml (currently using grunt-processhtml). I pass in the parameters the same way I do in grunt, but the variables passed are not found.
The Gulp code:
var environment = 'dev';
var processHTMLOptions = {
    options: {
        process: true,
        data: {
            message: 'Processed HTML',
            env: `environment: "${environment}",`
        }
    }
};
gulp.task('html:dist', () => {
    return gulp.src('./src')
        .pipe(processHTML(processHTMLOptions))
        .pipe(gulp.dest('./build'));
});
and the HTML:
<!-- build:template
    <%= message %>
    <%= env %>
/build -->
The error I get:
((__t = ( message )) == null ? '' : __t);
          ^
ReferenceError: message is not defined