SHARE
TWEET

Untitled

a guest May 6th, 2016 1 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var concat = require('gulp-concat');
  2.  
  3.  
  4. var paths = {
  5.  ...
  6.  js: ['./js/**/*.js'], // whatever directory your JS files are
  7.  dest: ['./dest/'] // whatever directory you'd like the concat'd file to be placed in
  8.  ...
  9. }
  10.  
  11.  
  12. gulp.task('scripts', function() {
  13.  return gulp.src(paths.js)
  14.   .pipe(concat('app.js'))
  15.   .pipe(gulp.dest(paths.dest));
  16. });
  17.  
  18. gulp.task('watch', function() {
  19.  ...
  20.  gulp.watch(paths.js, ['scripts'];
  21.  ...
  22. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top