Skip to content

Instantly share code, notes, and snippets.

View SkyStalker's full-sized avatar

Aleksey Dunaitsev SkyStalker

View GitHub Profile
@SkyStalker
SkyStalker / gulpfile.js
Created July 3, 2016 20:32 — 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));