在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):mahnunchik/gulp-responsive开源软件地址(OpenSource Url):https://github.com/mahnunchik/gulp-responsive开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-responsive
Installation
If you are using Mac OS then before installing $ npm install --save-dev gulp-responsive Usagevar gulp = require('gulp')
var responsive = require('gulp-responsive')
gulp.task('default', function () {
return gulp
.src('src/*.{png,jpg}')
.pipe(
responsive({
'background-*.jpg': {
width: 700,
quality: 50
},
'cover.png': {
width: '50%',
// convert to jpeg format
format: 'jpeg',
rename: 'cover.jpg'
},
// produce multiple images from one source
'logo.png': [
{
width: 200
},
{
width: 200 * 2,
rename: '[email protected]'
}
]
})
)
.pipe(gulp.dest('dist'))
}) ExamplesIntegration |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论