Last active
August 29, 2015 14:16
-
-
Save kevinsimper/5bc8c8792c727f9061c9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 transform = require('vinyl-transform'); | |
gulp.task('browserify', function() { | |
var browserified = transform(function(filename) { | |
var b = browserify(filename); | |
return b.bundle(); | |
}); | |
return gulp.src(['./www/main.js']) | |
.pipe(browserified) | |
.pipe(gulp.dest('www/build/')) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment