gulpfile.js
function copyToDemo(srcArr) {
  return gulp.src(srcArr)
    .pipe(gulp.dest(function (file) {
      return demoDist + file.base.slice(__dirname.length); // save directly to demo
    }));
}
function copyToDemo(srcArr) {
  return gulp.src(srcArr)
    .pipe(gulp.dest(function (file) {
      return demoDist + file.base.slice(__dirname.length); // save directly to demo
    }));
}
function copyToDemo ( srcArr ) { return gulp . src ( srcArr ) . pipe ( gulp . dest ( function ( file ) { return demoDist + file . base . slice ( __dirname . length ) ; // save directly to demo } ) ) ; }
Copy given files to demo directory
Copy given files to demo directory