Skip to content

Instantly share code, notes, and snippets.

@thomastuts
Created November 5, 2014 14:24
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 thomastuts/0c6b67429c0669afc8c2 to your computer and use it in GitHub Desktop.
Save thomastuts/0c6b67429c0669afc8c2 to your computer and use it in GitHub Desktop.
gulp.task('bundle:source', function () {
return es.merge(
gulp.src('src/scripts/**/*.html')
.pipe(templateCache({
module: 'myModule',
root: 'scripts'
})),
gulp.src([
'src/scripts/app.js',
'src/scripts/**/*.js'
])
)
.pipe(concat('bundle.js'))
.pipe(gulp.dest('dist/scripts'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment