Plugin transforms img to base64 for sheetify
works with async functions (node 7.6+)
before:
div{
background: url('test.png')
}
after:
div{
background: url('data:image/png;base64,iVBORw0KGgoAAA...')
}
npm test
$ browserify entry.js -t [ sheetify/transform -t sheetify-inline ]
const browserify = require('browserify')
browserify()
.transform('sheetify/transform', { transform: [ 'sheetify-inline' ] })
.bundle()
$ npm install sheetify-inline