Releases: stidges/laravel-mix-mjml
Releases · stidges/laravel-mix-mjml
v4.0.1
v4.0.0
- Fix output path not working correctly on windows (#8) - thanks @Bouhnosaure !
- Add support for webpack watch mode - thanks @DougThwaites !
- Remove default
mjmlOptions
- fixes #10
Breaking changes
This version removes the default { beautify: true, minify: false }
options from the mjmlOptions
setting, because these have been deprecated by MJML since v4. The removal of the minify
option should not affect the output of your templates, but if you'd still like to beautify the output you can add { mjmlOptions: { beautify: true } }
to the settings in your webpack.mix.js
file. Note this this will output a deprecation notice, we unfortunately cannot remove this.
v3.0.0
v2.0.3
v2.0.2
v2.0.1
v2.0.0
v2.0.0 introduces more flexibility for specifying the input paths and moves the MJML compiler options to a dedicated mjmlOptions
entry in the options
argument.
New features and improvements
- Input path improvements
The input path now supports globs and specific input filenames. Previously it only supported a directory name and always performed a recursive glob to grab the files. - Multiple entry support
The.mjml()
plugin can now be called multiple times with different input paths, output paths and options. - Better default
filePath
value
MJML uses afilePath
option to resolve the paths used inmj-include
directives. Previously this defaulted to the root directory of your project, but has now been updated to the input path to support relative file inclusion.
Breaking changes
- New
mjmlOptions
entry inoptions
argument.
This MJML compiler options have been moved into a dedicatedmjmlOptions
entry.
// before
mix.mjml('resources/mail', 'resources/views/mail', {
extension: '.html',
beautify: false,
minify: true,
});
// after
mix.mjml('resources/mail', 'resources/views/mail', {
extension: '.html',
mjmlOptions: {
beautify: false,
minify: true,
},
});
- New default
filePath
value
In previous versions, using themj-include
directive required you to specify the full path to the partial to include. While this could be overridden through theoptions
argument, the default for this has been improved to allow easier relative file inclusion. If you are overriding thefilePath
option no changes have to be made:
<!-- before -->
<mj-include path="resources/mail/includes/include.mjml" />
<!-- after -->
<mj-include path="./includes/include.mjml" />
Initial release
v1.0.0 v1.0.0