Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bfulop/zeitwithyarn

trying to get MJML running on Zeit
https://github.com/bfulop/zeitwithyarn

Last synced: 11 days ago
JSON representation

trying to get MJML running on Zeit

Awesome Lists containing this project

README

        

# Running [MJML](https://mjml.io) rendering on Zeit Now

See [this issue](https://github.com/zeit/ncc/issues/276), for the error when trying to import the mJML library into a project and deploying to Zeit Now.

Using the `rolliup.config.js` of this repo, as an intermediate step seems to resolve the issue.

Please note, that I'm not exactly sure why this works, I just arrived to this setup via trial and error!

So the steps to run your MJML project on Zeit:

1. `rollup -c`
2. `ncc build bundle/date.js` => this step will soon no longer be necessary when Zeit updates the ncc library used on their deploys
3. `now`