Skip to content

Instantly share code, notes, and snippets.

@aydncnar
Last active May 19, 2018 17:14
Show Gist options
  • Select an option

  • Save aydncnar/8be4f731265e0bf2112d209dc34d57fb to your computer and use it in GitHub Desktop.

Select an option

Save aydncnar/8be4f731265e0bf2112d209dc34d57fb to your computer and use it in GitHub Desktop.
// mjml paketi : https://www.npmjs.com/package/gulp-mjml
// Kurulum : npm install gulp-mjml
var gulp = require('gulp'),
mjml = require('gulp-mjml');
var path = {
mjml : 'src/templates/*.mjml',
mjmlBuild : 'html/'
};
gulp.task('mjml', function () {
return gulp.src(path.mjml)
.pipe(mjml())
.pipe(gulp.dest(path.mjmlBuild))
});
gulp.task('mjml:watch', function () {
gulp.watch(path.mjml, ['mjml']);
});
gulp.task('default', ['mjml:watch']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment