Minify Email Code

Use the minify option to trim down the HTML size of your production emails.

Minified email code weighs less in KB, resulting in faster sendouts, faster opens, and bandwidth savings on limited mobile plans. Every little bit helps 🙂

Additionally, it reduces the risk of Gmail clipping.


Maizzle uses html-minifier and exposes its options to your config - simply enable it and define any other library options in the minify config key:

// config.production.js
module.exports = {
  minify: {
    enabled: true,
    minifyCSS: true,
    maxLineLength: 500,
    collapseWhitespace: true,
    processConditionalComments: true,
    // ...
  },
}

Checkout the full list of html-minifier options ↗