gulpfile.js
function copyToDist(srcArr) {
  return gulp.src(srcArr.concat(globalExcludes))
    .pipe(gulp.dest(function (file) {
      return libraryDist + file.base.slice(__dirname.length); // save directly to dist
    }));
}
function copyToDist(srcArr) {
  return gulp.src(srcArr.concat(globalExcludes))
    .pipe(gulp.dest(function (file) {
      return libraryDist + file.base.slice(__dirname.length); // save directly to dist
    }));
}
function copyToDist ( srcArr ) { return gulp . src ( srcArr . concat ( globalExcludes ) ) . pipe ( gulp . dest ( function ( file ) { return libraryDist + file . base . slice ( __dirname . length ) ; // save directly to dist } ) ) ; }
Copy given files to dist directory
Copy given files to dist directory