I have written a gulp task to convert mjml file to html on change. Here is the code:
gulp.task('mjml:dev', function () {
return gulp.src(paths.mjmlWatch, {base: "./"})
.pipe(mjml(mjmlEngine, {
output: '.phtml'
}))
.pipe(gulp.dest('./'));
});
Everything is working fine but I want the output extension to be .phtml
. I use the output option but it is still generating the .html
extension file.