stidges / laravel-mix-mjml

Laravel Mix plugin to compile MJML files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"beautify" option is deprecated in mjml-core and only available in mjml cli.

liran-co opened this issue · comments

This doesn't seem to be compatible with the latest version of MJML. It throws the following error when compiling:

"beautify" option is deprecated in mjml-core and only available in mjml cli.

same here

Same here. Any workaround?

There is a workaround, but not resolve all problems...

mix.mjml(input, output, { 
  mjmlOptions: { beautify: false }
}

but after that:
TypeError: Cannot read properties of undefined (reading 'getAssets') ...

Sorry for the delay on this. MJML has deprecated these options since v4, so I've published a new version that removes the defaults from the plugin! Since this is a breaking change I've published a new major version, you can review the release notes here