v1.1.0
First feature release since v1.0 π
Multiple asset paths
You can now define multiple asset paths, with an array. For example:
// config.js
module.exports = {
build: {
assets: {
source: ['src/assets/images', 'src/fonts'],
destination: 'assets',
},
// ...
}
}
Disable safeClassNames
You can now disable the safeClassNames
transformer:
// config.js
module.exports = {
safeClassNames: false,
}
Doing this will no longer replace escaped characters in CSS class names with email-safe alternatives.
Updated extraAttributes
extraAttributes
now uses PostHTML too, replacing cheerio
. This was done so that we push the HTML through a single parser, for consistency and predictability - except the inliner, all transformers in Maizzle now use PostHTML.
See docs for new extraAttributes
options.
Bug Fixes
Fixed an obscure issue with posthtml-safe-class-names
, where CSS comments containing HTML tag names were breaking the build (posthtml/posthtml-safe-class-names@3d7deb9).
See full diff: