Stylecow plugin to embed base64-encoded images in the css
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

stylecow plugin base64

Build Status

Stylecow plugin to embed images in the css using base64 encode. Only images lower than 5Kb will be embedded.

You write:

div {
	background: url('image.png');
}

And stylecow converts to:

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

More demos in the tests folder