Skip to content

Instantly share code, notes, and snippets.

@nodekid
Last active August 29, 2015 14:01
Show Gist options
  • Save nodekid/3f1e088421bbae7036bd to your computer and use it in GitHub Desktop.
Save nodekid/3f1e088421bbae7036bd to your computer and use it in GitHub Desktop.
Basic Browserify & Gulp Implementation
var gulp = require('gulp');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
gulp.task('build', function () {
return (
browserify(['./src/main.js'])
.bundle()
.pipe(source('main.js'))
.pipe(gulp.dest('./build'))
);
}
{
"browserify": {
"transform": [
"partialify"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment