An efficient pipeline for generating HTML emails from Markdown source.
- Convert Markdown to MJML (based on templates)
- Convert MJML to HTML
- Inline CSS
- Minify HTML
- Accessibility check
Emails should be created in the src/markdown folder with a .md extension.
The MJML templates should be in the src/mjml folder with an .mjml extension.
The gulp file will process the markdown files and drop them into the dist folder in MJML, minified, and non-minified versions.
The non-minified versions will make it easier to fix any WCAG violations by helping to identify the specific code fragment that is in violation.
yarn gulp build-onlyyarn gulp