Skip to content

Instantly share code, notes, and snippets.

View rohillion's full-sized avatar

Rodrigo hillion rohillion

  • Dublin, Ireland
View GitHub Profile
@rohillion
rohillion / gulpfile.js
Created June 6, 2016 19:58 — forked from danharper/gulpfile.js
New ES6 project with Babel, Browserify & Gulp
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var browserify = require('browserify');
var watchify = require('watchify');
var babel = require('babelify');
function compile(watch) {
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel));