Skip to content

Instantly share code, notes, and snippets.

@deodat
Created October 15, 2019 17:08
Show Gist options
  • Select an option

  • Save deodat/e9b914a8928a1dbed62920efcf0c2b8f to your computer and use it in GitHub Desktop.

Select an option

Save deodat/e9b914a8928a1dbed62920efcf0c2b8f to your computer and use it in GitHub Desktop.

Revisions

  1. deodat created this gist Oct 15, 2019.
    14 changes: 14 additions & 0 deletions gulpfile.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    const gulp = require('gulp');
    const mjml = require('gulp-mjml');

    gulp.task('mjml', function() {
    return gulp.src('./index.mjml')
    .pipe(mjml())
    .pipe(gulp.dest('./html'))
    });

    gulp.task('watch', function() {
    gulp.watch('index.mjml', gulp.series('mjml'));
    });

    gulp.task('default', gulp.series('watch', 'mjml'));