Skip to content

stackcss/sheetify-inline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sheetify-inline stability

npm version downloads travis build

Plugin transforms img to base64 for sheetify

works with async functions (node 7.6+)

Example

before:

div{
  background: url('test.png')
}

after:

div{
  background: url('data:image/png;base64,iVBORw0KGgoAAA...')
}

Test

npm test

Command line

$ browserify entry.js -t [ sheetify/transform -t sheetify-inline ]

JS api

const browserify = require('browserify')

browserify()
 .transform('sheetify/transform', { transform: [ 'sheetify-inline' ] })
 .bundle()

Installation

$ npm install sheetify-inline

License

MIT

About

a plugin transforms img to base64 for sheetify

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published