Commit 8c7d48e8 authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEATURE] include svgs in image task

parent 05b18476
......@@ -9,9 +9,10 @@ var gulp = require('gulp'),
});
gulp.task('images', function() {
return gulp.src(settings.getPath() + '/' + config.directories.images + '/**/*{.png,.jpg,.gif}')
return gulp.src(settings.getPath() + '/' + config.directories.images + '/**/*.{png,jpg,gif,svg}')
.pipe(plugins.imagemin({
progressive: true
progressive: true,
verbose: true
}))
.pipe(gulp.dest(settings.getPath() + '/' + config.directories.images));
});
......@@ -21,9 +22,10 @@ gulp.task('images:uploaded', function() {
merged = plugins.mergeStream();
for (var path in config.images.optimize) {
plugins.util.log(plugins.util.colors.blue('Optimize images in ') + plugins.util.colors.green(config.images.optimize[path]));
var stream = gulp.src(config.images.optimize[path] + '/**/*.{png,jpg,gif}')
var stream = gulp.src(config.images.optimize[path] + '/**/*.{png,jpg,gif,svg}')
.pipe(plugins.imagemin({
progressive: true
progressive: true,
verbose: true
}))
.pipe(gulp.dest(config.images.optimize[path]));
streams.push(stream);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment