Laravel Mix MJML
A Laravel Mix plugin to compile MJML files.
This package can be installed through NPM:
npm install -D laravel-mix-mjml
// webpack.mix.js const mix = require('laravel-mix'); require('laravel-mix-mjml'); mix.mjml();
mjml plugin has the following signature:
mix.mjml(inputPath, outputPath, options);
The path where the MJML files are located.
The path where the compiled files should be outputted to. Note: This path will be resolved relative to your root path!
The extension to use when outputting the compiled files.
Any other options are passed to the MJML compiler. Please review the MJML documetation which options are accepted here.
The MIT License (MIT). Please see License file for more information.