deepak1556 / gulp-browserify

Bundle modules with BrowserifyJS
MIT License
195 stars 45 forks source link

Gulp browserify fails silently? #66

Open richardvanbergen opened 10 years ago

richardvanbergen commented 10 years ago

The test.js is in the same directory as my gulpfile.js but for some reason is isn't outputting to tmp.js. The file isn't created.

'use strict';

var _ = require('underscore');

var logUnderscoreVersion = function() {
    console.log(_.VERSION);
};

module.exports = logUnderscoreVersion;
gulp.task('browserify', function() {
    var production = gutil.env.type === 'production';

    gulp.src(['test.js'], {read: false})

        // Browserify, and add source maps if this isn't a production build
        .pipe(browserify({
            debug: true
        }))

        // Rename the destination file
        .pipe(rename('tmp.js'))

        // Output to the build directory
        .pipe(gulp.dest('./'));
});
$ gulp browserify
[gulp] Using gulpfile /home/richard/Code/enrichit-dev/gulpfile.js
[gulp] Starting 'browserify'...
[gulp] Finished 'browserify' after 5.88 ms

Any ideas?

richardvanbergen commented 10 years ago

Sorry, I've just noticed that this plugin has been blacklisted... kind of sucks.