Last active
May 19, 2018 17:14
-
-
Save aydncnar/8be4f731265e0bf2112d209dc34d57fb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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