babel-plugin-transform-adonis-hash

0.4.0 • Public • Published

babel-plugin-babel-transform-adonis-hash

Pre-hashes adonis object styles to support external CSS files

Example

In

adonis.div({
  background: 'blue'
})

Out

adonis.div('1nxhvta');

Installation

$ npm install babel-plugin-transform-adonis-hash

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-adonis-hash"]
}

Via CLI

$ babel --plugins transform-adonis-hash script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-adonis-hash"]
});

Package Sidebar

Install

npm i babel-plugin-transform-adonis-hash

Weekly Downloads

0

Version

0.4.0

License

none

Last publish

Collaborators

  • maerch
  • mirko314-imgly
  • danielhauschildt
  • keiwando
  • schiewe
  • sascha_
  • svendvd
  • leon_dud
  • saschagehlich