gulp Using Browserify Using Browserify with Vanilla Javascript

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

First install gulp and browserify via npm i gulp gulp-browserify. This will install browserify into your node_modules folder.

gulpfile.js

var gulp = require('gulp');
var browserify = require('gulp-browserify');

gulp.task('script', function() {
    gulp.src('./src/script.js')
        .pipe(browserify({
            insertGlobals: true
        })
        .pipe(gulp.dest('./build/'));
}


Got any gulp Question?