Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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;
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Multiple #destinations #gulp #js
ADD COMMENT
Topic
Name
6+7 =