// Concat vendor CSS (uglify for production)
gulp.task('styles:vendor', function() {
gulp.src(mainBowerFiles({
"overrides": {
"normalize.css": {
"main": "./normalize.css"
},
"magnific-popup": {
"main": "./dist/magnific-popup.css"
},
"slick-carousel": {
"main": [
"./slick/slick.css",
"./slick/slick-theme.css",
"./slick/fonts/!*.*"
]
}
}
}))
.pipe(cssFilter)
.pipe(concat('vendor.css'))
.pipe(gulpIf(env !== 'dev', minifyCSS()))
.pipe(gulp.dest(outputDir + 'css'))
});
// Compress images and move 'em to output dir
gulp.task('images', function() {
return gulp.src(src.images)
.pipe(imageMin({
progressive: true,
svgoPlugins: [{removeViewBox: false}],
use: [pngquant()],
interlaced: true
}))
.pipe(gulp.dest(outputDir + 'img'))
.pipe(connect.reload())
});