postcss-inline-image
v0.1.1
Published
PostCSS plugin that puts images as data URIs into your CSS
Downloads
91
Maintainers
Readme
PostCSS Inline Image
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.