1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/gulp/imageMin.js

16 lines
455 B
JavaScript
Raw Normal View History

2014-08-30 08:59:08 +03:00
var gulp = require('gulp');
var print = require('gulp-print');
var paths = require('./paths.js');
gulp.task('imageMin', function () {
var imagemin = require('gulp-imagemin');
return gulp.src(paths.src.images)
.pipe(imagemin({
progressive: false,
optimizationLevel :4,
svgoPlugins: [{removeViewBox: false}]
}))
.pipe(print())
2014-08-30 09:19:57 +03:00
.pipe(gulp.dest(paths.src.content + 'Images/'));
2014-08-30 08:59:08 +03:00
});