npm install --save-dev gulp-node-browserify
var gulp = require('gulp');
var browserify = require('gulp-node-browserify');
// Basic usage
gulp.task('browserify', () => {
let dest = './dest'
gulp.src('./index.js')
.pipe(changed(dest))
.pipe(browserify())
.pipe(gulp.dest(dest))
});
Reference : https://github.com/substack/node-browserify#methods
* files, opts.entries is not used.