postcss-inline-image

0.1.1 • Public • Published

PostCSS Inline Image Build Status

PostCSS plugin that puts images as data URIs into your CSS.

.foo {
    background-inline-image: url(one_pixel_transparent.gif);
}
.foo {
    background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==);
}

Usage

postcss([ require('postcss-inline-image') ])

See PostCSS docs for examples for your environment.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    16
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    16
  • 0.1.0
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i postcss-inline-image

Weekly Downloads

16

Version

0.1.1

License

MIT

Last publish

Collaborators

  • fkadev