Answers for "Multiple destinations with gulp js"

0

Multiple destinations with gulp js

const gulp = require("gulp");
const glob = require("glob");

const destinationFolders = glob.sync("app/scss/skins/skin-*");    

gulp.task('copyFiles', function () {

  var stream = gulp.src("app/scss/style.scss");

  destinationFolders.forEach(function (skinFolder) {
      stream = stream.pipe(gulp.dest(skinFolder));
  });

  return stream;
});
Posted by: Guest on July-15-2021

Browse Popular Code Answers by Language