You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
504 B

var gulp = require("gulp"),
newer = require("gulp-newer"),
imagemin = require("gulp-imagemin"),
vars = require('../variables');
// image processing
const copyImages = function () {
const distDemoFolder = vars.getDistAssetsPath();
const baseAssets = vars.getBaseAssetsPath();
var out = distDemoFolder + "images";
return gulp
.src(baseAssets + "images/**/*")
.pipe(newer(out))
.pipe(imagemin())
.pipe(gulp.dest(out));
}
gulp.task(copyImages);