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
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.
Any ideas?