PostCSS PlaceholdIt
PostCSS plugin that uses the https://placehold.it service as a placeholder for broken background images. You provide the background image you want to use as one parameter, and then provide a placeholder size for the second parameter.
Note: This plugin is a work in progress.
If the background image exists:
If the background image doesn't exists:
Usage
Options
domain
You can pass a domain option to the plugin so that the plugin knows what absolute URL to use to request your image.
Default: http://localhost
Note: The plugin will only prepend a domain if the background image doesn't have an http or https protocol specified.
See PostCSS docs for examples for your environment.