📜  使用 gulp js 的多个目的地 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:38.360000             🧑  作者: Mango

代码示例1
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;
});