mjmlio / gulp-mjml

Add Gulp to your MJML workflow!
MIT License
162 stars 38 forks source link

Validating MJML #26

Open FabioFleitas opened 7 years ago

FabioFleitas commented 7 years ago

From @iRyusa's comment here it seems like you guys setup MJML validation. Could we use that with gulp-mjml?

FabioFleitas commented 7 years ago

Bumping this up in case there is a solution

rmelchner commented 1 year ago
const gulp = require('gulp');
const mjml = require('gulp-mjml');

//MJML Engine 
 const mjml2html = require('mjml');

 gulp.pipe(mjml(mjml2html, { validationLevel: 'strict' }))

You can pass it to the Mjml-Engine in gulp