Created
July 10, 2014 22:44
-
-
Save junosuarez/0b8f8a7282e1782e5922 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 brfs = require('brfs') | |
var source = require('vinyl-source-stream') | |
gulp.task('browserify-release', ['clean-release'], function () { | |
return browserify('./index.js') | |
.add(brfs()) // this is me not knowing how to use browserify off the top of my head | |
.bundle() | |
.pipe(source('./bundle.js')) | |
.pipe(gulp.dest('./build/release')) | |
}) | |
// fails silently |
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 brfs = require('brfs') | |
var source = require('vinyl-source-stream') | |
gulp.task('browserify-release', ['clean-release'], function () { | |
return browserify('./index.js') | |
.transform(brfs) // this is actually correct and works as expected | |
.bundle() | |
.pipe(source('./bundle.js')) | |
.pipe(gulp.dest('./build/release')) | |
}) | |
// completes successfully |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment