mjml-scripts

CLI scripts for making work with MJML a little bit nicer

Usage no npm install needed!

<script type="module">
  import mjmlScripts from 'https://cdn.skypack.dev/mjml-scripts';
</script>

README

mjml-scripts

package version package downloads standard-readme compliant package license make a pull request

CLI scripts for making work with MJML a little bit nicer

Table of Contents

Usage

Build

$ mjml-scripts build -i=example/**.mjml -o=dist --minify --beautify
$ mjml-scripts build -i=example/**.mjml -o=dist -extension=".htm"

See MJML documentation for additional configuration options.

Watch

$ mjml-scripts watch -i=example -o=dist
$ mjml-scripts watch -i=example -o=dist --serve --port=4444

Install

This project uses node and npm.

$ npm install -g mjml-scripts
$ # OR
$ yarn global add mjml-scripts

Contribute

  1. Fork it and create your feature branch: git checkout -b my-new-feature
  2. Commit your changes: git commit -am "Add some feature"
  3. Push to the branch: git push origin my-new-feature
  4. Submit a pull request

License

MIT