postcss-placehold

1.2.0 • Public • Published

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(400400);
}

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

/postcss-placehold/

    Package Sidebar

    Install

    npm i postcss-placehold

    Weekly Downloads

    0

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • awayken