View result online
-
Generate .webp images. view code 👀
-
webpcss
add links to WebP images for browsers that support it. view code 👀 -
postcss-image-set-generator
generate miniatures for allimage-set(<one_image_set_options>)
. view code 👀 -
postcss-image-set-polyfill
convert allimage-set()
to@media(min-resolution: XXXdpi){/*...*/}
. view code 👀 -
autoprefixer
fixed@media
rules. view code 👀 -
css-mqpacker
groups duplicated media rules. view code 👀 -
csso
minify css code. view code 👀
№ | plugin | required |
---|---|---|
1 | webpcss | |
2 | postcss-image-set-generator | ✔ |
3 | postcss-image-set-polyfill | ✔ |
4 | autoprefixer | ✔ |
5 | css-mqpacker | ✔ |
6 | postcss-csso |
Clone this repo and install npm packages:
yarn
npm i
Run build:
yarn run build
npm run build