github maizzle/framework v1.1.0

latest releases: v4.8.4, v4.8.3, v4.8.2...
3 years ago

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:

v1.0.9...v1.1.0

Don't miss a new framework release

NewReleases is sending notifications on new releases.