babel-plugin-transform-adonis-hash
v0.4.0
Published
Pre-hashes adonis object styles to support external CSS files
Downloads
2
Readme
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"]
});