PostCSS plugin that makes it easy to drop in placeholder images.
JavaScript

README.md

postcss-placehold Build Status NPM version

PostCSS plugin that makes it easy to drop in placeholder images.

Install

With npm do:

npm install postcss-placehold --save

Example

Input

h1 {
    background: placehold(400, 400);
}

Output

h1 {
    background: url("https://placehold.it/400x400");
}

Options

options.service

Type: string Default: placeholdit

Define which placeholder service to use for your images.

Supported services:

Usage

See the PostCSS documentation for examples for your environment.

Contributing

Pull requests are welcome. If you add functionality, then please add unit tests to cover it.

License

MIT © Miles Rausch