Skip to content

Instantly share code, notes, and snippets.

@AkshayRana92
Created July 8, 2017 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AkshayRana92/3292c543e94d54593a2eb7bfcd8e0db1 to your computer and use it in GitHub Desktop.
Save AkshayRana92/3292c543e94d54593a2eb7bfcd8e0db1 to your computer and use it in GitHub Desktop.
var concat = require('gulp-concat'); //Add dependency to package.json if not added
gulp.task('vendor-js', function () {
gulp.src(["assets/js/sweetalert2.min.js","assets/js/jquery-ui.min.js'" ... ]) // Add all js files path
.pipe(concat('vendor.js')) //Concatenate to a single js file
.pipe(gulp.dest('dist/prod/src/assets/js/')); // destination folder
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment