Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var config = {
- paths: {
- js: './src/**/*.js'//blob syntax?
- }
- };
- gulp.task('js', function(){
- browserify(config.paths.js, { debug: true })
- .transform(babel)
- .transform(reactify)
- .bundle()
- .on('error', console.error.bind(console))
- .pipe(source('bundle.js'))
- .pipe(sourcemaps.write('./'))//TODO: not sure if this syntax is correct
- .pipe(gulp.dest(config.paths.dist + '/scripts'))
- .pipe(connect.reload())
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement