All Projects → f → Postcss Inline Image

f / Postcss Inline Image

Licence: mit
PostCSS plugin that puts images as data URIs into your CSS

Programming Languages

javascript
184084 projects - #8 most used programming language

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].