postcss-background-inline-base64

2.0.0 • Public • Published

postcss-background-inline-base64

The PostCSS plugin to insert base64 embedded backgrounds


Usage

 
.pageLoading {
  min-height: 200px;
  background-image: url("./loader.gif") /*b64*/;
  background-position: center 30px;
  background-repeat: no-repeat;
}
 

The line

background-image: url("./loader.gif") /*b64*/;

will be replaced with the

background-image: url("data:image/gif;charset=utf-8;base64,...");

You can use either background or background-image directives.


Package Sidebar

Install

npm i postcss-background-inline-base64

Weekly Downloads

3

Version

2.0.0

License

MIT

Unpacked Size

2.53 kB

Total Files

3

Last publish

Collaborators

  • mightydes