Skip to content

Releases: stidges/laravel-mix-mjml

v4.0.1

18 Feb 14:31
v4.0.1
574b86e
Compare
Choose a tag to compare

Improve stability by catching any errors thrown during MJML processing and reporting them as webpack build errors

v4.0.0

08 Jan 13:15
v4.0.0
47925e2
Compare
Choose a tag to compare
  • 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

22 Jan 18:17
v3.0.0
656cf76
Compare
Choose a tag to compare

Upgrade to Laravel Mix 6 and Webpack 5

v2.0.3

13 Feb 08:05
v2.0.3
55df755
Compare
Choose a tag to compare

Fixed a typo in the default value of the output parameter to follow Laravel's folder structure (#6). Thanks @angelocala94!

v2.0.2

25 Nov 15:24
v2.0.2
1beb49f
Compare
Choose a tag to compare

Fixed a bug with incorrect output paths on Windows (#5). Thanks @danielmoeck!

v2.0.1

21 Nov 13:56
v2.0.1
80670ed
Compare
Choose a tag to compare

Fixed a bug where using a path as entry would produce an incorrect output path (#4)

v2.0.0

28 Oct 13:43
v2.0.0
472d88f
Compare
Choose a tag to compare

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

  1. 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.
  2. Multiple entry support
    The .mjml() plugin can now be called multiple times with different input paths, output paths and options.
  3. Better default filePath value
    MJML uses a filePath option to resolve the paths used in mj-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

  1. New mjmlOptions entry in options argument.
    This MJML compiler options have been moved into a dedicated mjmlOptions 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,
  },
});
  1. New default filePath value
    In previous versions, using the mj-include directive required you to specify the full path to the partial to include. While this could be overridden through the options argument, the default for this has been improved to allow easier relative file inclusion. If you are overriding the filePath 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

27 Jul 15:41
v1.0.0
3ce99b8
Compare
Choose a tag to compare
v1.0.0

v1.0.0