Skip to content

alex499/postcss-image-set

Repository files navigation

postcss-image-set Build Status

PostCSS plugin for fallback image-set.

.foo {
    /* Input example */
    background-image: image-set(url(img/test.png) 1x,
                                url(img/test-2x.png) 2x,
                                url(my-img-print.png) 600dpi);
}
.foo {
    /* Output example */
    background-image: url(img/test.png);
    background-image: image-set(url(img/test.png) 1x,
                                url(img/test-2x.png) 2x,
                                url(my-img-print.png) 600dpi);
}

Usage

postcss([ require('postcss-image-set') ])

See PostCSS docs for examples for your environment.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published