SHARE
TWEET
Untitled
a guest
May 6th, 2016
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- var concat = require('gulp-concat');
- var paths = {
- ...
- js: ['./js/**/*.js'], // whatever directory your JS files are
- dest: ['./dest/'] // whatever directory you'd like the concat'd file to be placed in
- ...
- }
- gulp.task('scripts', function() {
- return gulp.src(paths.js)
- .pipe(concat('app.js'))
- .pipe(gulp.dest(paths.dest));
- });
- gulp.task('watch', function() {
- ...
- gulp.watch(paths.js, ['scripts'];
- ...
- });
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.
