Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

Gulp for multi scripts

0 votes
added Jun 29, 2018 in Gulp by LC Marshal Captain (25,860 points)
edited Jul 12, 2019 by LC Marshal
//any scripts in the scripts/ folder will be unified as script.js
gulp.task('script', function() {
  return gulp
      environment ?
      config.js.exclude.concat(config.basedir + config.themedir + config.js.src) :
      config.basedir + config.themedir + config.js.src
    .pipe(wrap('(function($){\n<%= contents %>\n})(jQuery);'))
    .pipe(header(banner, { pkg: pkg }))
    .pipe(gulp.dest(config.basedir + config.themedir + config.js.dest));

gulp.task('babel', () =>

Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.