Last active
August 29, 2015 14:01
-
-
Save nodekid/3f1e088421bbae7036bd to your computer and use it in GitHub Desktop.
Basic Browserify & Gulp Implementation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')) | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"browserify": { | |
"transform": [ | |
"partialify" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment