a plugin converts img to base64 for sheetify
npm install sheetify-inlinePlugin transforms img to base64 for sheetify
works with async functions (node 7.6+)
before:
``css`
div{
background: url('test.png')
}
after:
`css
div{
background: url('data:image/png;base64,iVBORw0KGgoAAA...')
}
`
npm test
sh
$ browserify entry.js -t [ sheetify/transform -u sheetify-inline ]
`JS api
`js
const browserify = require('browserify')browserify()
.transform('sheetify/transform', { use: [ 'sheetify-inline' ] })
.bundle()
`Installation
`sh
$ npm install sheetify-inline
``[0]: https://img.shields.io/badge/stability-experimental-orange.svg?style=flat-square
[1]: https://nodejs.org/api/documentation.html#documentation_stability_index
[2]: https://img.shields.io/npm/v/sheetify-inline.svg?style=flat-square
[3]: https://npmjs.org/package/sheetify-inline
[4]: http://img.shields.io/npm/dm/sheetify-inline.svg?style=flat-square
[5]: https://npmjs.org/package/sheetify-inline
[6]: https://travis-ci.org/stackcss/sheetify-inline.svg?branch=master