gulp-webp-css
1.1.0 • Public • Published gulp-webp-css
Example
// Input
.banner{
background: url(/img/bannerbg.jpg) no-repeat center;
}
// Output
.banner{
background: url(/img/bannerbg.jpg) no-repeat center;
}
@supports (-webkit-appearance:none){
.banner {
background-image: url(/img/bannerbg.webp);
}
}
Install
npm i --save-dev gulp-webp-css
Usage
var webpCss = require('gulp-webp-css');
gulp.task('css', function () {
gulp.src('./assets/css/*.css')
.pipe(webpCss())
.pipe(gulp.dest('./public/css/'))
});
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads