html-minifier
has been removed from the dependencies and it's now replaced byhtmlnano
(as a peer dependency) (reported by #268).- The
minifyHtmlOutput
is nowfalse
by default, sincehtmlnano
require a bit more configuration to work properly. - The
htmlMinifierOptions
as been rename totemplateMinifierOptions
and it's now an object with the following properties:options
: (optional) Wich is the options object passed tohtmlnano
.preset
: (optional) Which is the preset used byhtmlnano
.
npm install nodemailer-mjml@latest
or
yarn add nodemailer-mjml@latest
npm install --save-dev htmlnano
or
yarn add -D htmlnano
Note
If you want html
minification, you will need to also install posthtml
If you want html
minification, you will need to also install postcss
and cssnano
If you want js
minification, you will need to also install terser
If you want svg
minification, you will need to also install svgo
More information about the htmlnano
options can be found here.
‡