Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. var config = {
  2. paths: {
  3. js: './src/**/*.js'//blob syntax?
  4. }
  5. };
  6.  
  7. gulp.task('js', function(){
  8. browserify(config.paths.js, { debug: true })
  9. .transform(babel)
  10. .transform(reactify)
  11. .bundle()
  12. .on('error', console.error.bind(console))
  13. .pipe(source('bundle.js'))
  14. .pipe(sourcemaps.write('./'))//TODO: not sure if this syntax is correct
  15. .pipe(gulp.dest(config.paths.dist + '/scripts'))
  16. .pipe(connect.reload())
  17. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement