PostHTML configuration
Maizzle uses PostHTML as its templating engine, and you can customize options or register plugins that can further transform your HTML emails.
options
Configure PostHTML options.
For example, you may tell it to ignore <?php ?>
tags:
config.js
module.exports = {
build: {
posthtml: {
options: {
directives: [
{ name: '?php', start: '<', end: '>' }
]
}
}
}
}
Checkout the PostHTML documentation for all available options.
plugins
Register any PostHTML plugins you would like to use:
config.js
module.exports = {
build: {
posthtml: {
plugins: [
require('posthtml-spaceless')()
]
}
}
}
Maizzle already uses the following plugins, no need to add them:
Copyright © 2022 Maizzle
Edit this page on GitHub