1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-31 20:15:55 +00:00
Lidarr/frontend/gulp/imageMin.js

16 lines
429 B
JavaScript
Raw Normal View History

2017-09-04 02:20:56 +00:00
var gulp = require('gulp');
2018-09-16 02:32:34 +00:00
var print = require('gulp-print').default;
2017-09-04 02:20:56 +00:00
var paths = require('./helpers/paths.js');
gulp.task('imageMin', () => {
var imagemin = require('gulp-imagemin');
return gulp.src(paths.src.images)
.pipe(imagemin({
progressive: false,
optimizationLevel: 4,
svgoPlugins: [{ removeViewBox: false }]
}))
.pipe(print())
.pipe(gulp.dest(paths.src.content + 'Images/'));
});