Skip to content

Instantly share code, notes, and snippets.

View imcuttle's full-sized avatar
🎯
Focusing get money

Cong Yu imcuttle

🎯
Focusing get money
View GitHub Profile
@imcuttle
imcuttle / gulpfile.js
Created June 9, 2017 04:08 — 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));