Skip to content

Seed Barista - v0.3.2

Choose a tag to compare

@ItsJonQ ItsJonQ released this 15 Apr 01:29
· 155 commits to master since this release

Updates

  • Add enableCSSOM option, which outputs the PostCSS AST (this is set to true by default)
  • Refactor parser ($) and barista to output new instance everytime barista() or barista().$() is used
  • Cleanup barista.render method (split it into smaller methods)
  • Write tests!!

enableCSSOM

Type: boolean
Default: true

Setting to enable PostCSS parsing that generates the CSS object model (using PostCSS's abstract syntax tree).

var output = barista({
  enableCSSOM: false,
});

Note: Setting it to false will result in output.data and output.$() returning false, since both rely on the CSSOM.

Resolves: #8