Skip to content

Instantly share code, notes, and snippets.

View sibinx7's full-sized avatar
🏠
Working from home

Sibin Xavier sibinx7

🏠
Working from home
View GitHub Profile
@sibinx7
sibinx7 / gulpfile.js
Last active January 25, 2016 12:57
React babelify with gulp, gulp task to compile React in ES2015/ES6 mode
var gulp = require('gulp')
var browserify = require("browserify")
var babelify = require("babelify")
var source = require('vinyl-source-stream');
var livereload = require('gulp-livereload');
gulp.task("react",function(){
return browserify({
entries:'./app/assets/javascripts/react/main.js',
debug: true
})