Example #1
0
gulp.task('images', ['clean'], function() {
  return gulp.src(paths.images)
    .pipe(imagemin({optimizationLevel: 5}))
    .pipe(gulp.dest('client/_build/img'));
});
Example #2
0
 gulp.task('imagemin', () => {
   return gulp.src(imagePaths)
     .pipe(imagemin(options.tasks.images.build.options))
     .pipe(gulp.dest(output))
     .pipe(browserSync.stream());
 });
Example #3
0
gulp.task('img',function () {
    gulp.src('image/**/*')
        .pipe(imagemin())                 //压缩图片
        .pipe(gulp.dest('dist/img'));
});
gulp.task('imagemin', function() {
    return del(['dist/images']), gulp.src('src/images/**/*')
        .pipe(imagemin({ optimizationLevel: 3, progressive: true, interlaced: true}))
        .pipe(gulp.dest('dist/images'))
        .pipe(notify({ message: 'Image task complete' }));
});
Example #5
0
 gulp.task("dist:img", () =>
     gulp.src('src/imgs/*')
     .pipe(imagemin())
     .pipe(gulp.dest('dist/imgs'))
gulp.task('imagemin',() => {
    gulp.src('./vendor/images/*')
        .pipe(imagemin({progressive:true}))
    .pipe(gulp.dest('./app/images/'));
});
Example #7
0
gulp.task('imagemin',function(){
    gulp.src('img/avatars/sprite.png').pipe(imagemin()).pipe(gulp.dest('dist/avatars'));
});
Example #8
0
gulp.task("imagemin", function() {
  gulp.src("./app/images/*.+(jpg|jpeg|png|gif|svg)")
    .pipe(changed( './public/img/' ))
    .pipe(imagemin())
    .pipe(gulp.dest("./public/img/"));
});
Example #9
0
 gulp.task(item + key, function () {
   return gulp.src(paths[item].images.source)
     .pipe(imagemin({optimizationLevel: 5}))
     .pipe(gulp.dest(paths[item].images.dist));
 });
Example #10
0
gulp.task('images', function() {  
  return gulp.src('./images/*')
    .pipe(imagemin({ optimizationLevel: 3, progressive: true, interlaced: true }))
    .pipe(gulp.dest(config.publicDir+'/images/'))
    .pipe(notify({ message: 'Images task complete' }));
});
Example #11
0
gulp.task("copy-images", function() {
    return gulp.src(paths.app + "/images/**/*")
        .pipe(imagemin({progressive: true}))
        .pipe(gulp.dest(paths.dist + "/images/"));
});
Example #12
0
gulp.task('imagemin', function() {
    return gulp.src(paths.app.images)
        .pipe(imagemin({ progressive: true }))
        .pipe(gulp.dest(path.join(paths.dist, 'images')));
});
Example #13
0
gulp.task('demo', function () {
    return gulp.src(['images/source/*.*'])
        .pipe(imagemin())
        .pipe(gulp.dest('images/build/'));
});
Example #14
0
gulp.task('img', function() {
    gulp.src('dev/img/*')
        .pipe(imagemin())
        .pipe(gulp.dest('build/img'));
});
Example #15
0
gulp.task('build-img', function(){
  return gulp.src(paths.img)
    .pipe(imagemin({optimizationLevel: 5}))
    .pipe(gulp.dest('dist/img'));
});
Example #16
0
gulp.task('image', function() {
  return gulp.src('./images/*.*')
    .pipe(imagemin())
    .pipe(gulp.dest(config.root + '/images/'));
});
Example #17
0
gulp.task('images', () =>
	gulp.src('screenshots/**/*')
		.pipe(imagemin())
		.pipe(gulp.dest('screenshots')));
gulp.task('imgCompression', function(){
  return gulp.src(paths.images)
    .pipe(imagemin()) // Compresses PNG, JPEG, GIF and SVG images
    .pipe(gulp.dest(paths.dist + '/images'))
});
Example #19
0
gulp.task('image', function () {
	gulp.src('src/img/**/*')
		.pipe( imagemin() )
		.pipe( gulp.dest('dist/img') )
});
Example #20
0
gulp.task('imgMin', function () {
  return gulp.src('src/img/**/*.{jpeg,jpg,png}')
    .pipe(imagemin())
    .pipe(gulp.dest('../img/'))
});
Example #21
0
gulp.task('img', function() {
	return gulp.src(paths.img.src)
		.pipe(cache(minimg({ optimizationLevel: 3, progressive: true, interlaced: true })))
		.pipe(gulp.dest(paths.img.dest))
		.pipe(notify({ message: 'gulp -- Images' }));
});
Example #22
0
gulp.task('images', function() {
    return gulp.src('./lib/src/images/**/*')
    .pipe(imagemin({ optimizationLevel: 3, progressive: true, interlaced: true }))
    .pipe(gulp.dest('./lib/generated/images'));
});
gulp.task('img', function() {
  return gulp.src(patterns.img)
    .pipe(watch(patterns.img))
    .pipe(imagemin())
    .pipe(gulp.dest(dest));
});
Example #24
0
gulp.task('images', function(){
  gulp.src('src/images/**/*')
    .pipe(cache(imagemin({ optimizationLevel: 3, progressive: true, interlaced: true })))
    .pipe(gulp.dest('dist/images/'));
});
Example #25
0
gulp.task('images', function() {
    return gulp.src(paths.images)
        .pipe(imagemin({optimizationLevel: 2}))
        .pipe(gulp.dest('target/assets/images'));
});
Example #26
0
gulp.task('images', function(){
	return gulp.src('app/images/**/*.jpg')
		.pipe(imagemin())
		.pipe(gulp.dest('dist/images'))
});
Example #27
0
gulp.task('images', function() {
  return gulp.src('img/**/*')
    .pipe(cache(imagemin({ optimizationLevel: 3, progressive: true, interlaced: true })))
    .pipe(gulp.dest('img'))
    .pipe(notify({ message: 'Images task complete' }));
});
Example #28
0
gulp.task('images', function() {  
  return gulp.src('./dev/images/*.{png,jpg,gif,ico}')
    .pipe(imagemin({ optimizationLevel: 3, progressive: true, interlaced: true }))
    .pipe(gulp.dest('./dist/images/'))
    .pipe(notify({ message: '图片压缩完成' }));
});
Example #29
0
gulp.task('images', ['favicon'], function () {
	return gulp.src(config.src.images)
		.pipe(imagemin())
		.pipe(gulp.dest(config.dest + '/assets/toolkit/images'));
});
Example #30
0
gulp.task('images', function() {
	gulp.src('src/img/**/*')
		.pipe(imageMin())
		.pipe(gulp.dest('dist/img'))
		.pipe(browserSync.stream());
});