1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-27 18:30:45 +00:00
Radarr/gulp/imageMin.js

15 lines
471 B
JavaScript
Raw Normal View History

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