0 votes
in JAVA by
What is require() in gulpfile.js?

1 Answer

0 votes
by
require() is used to load core gulp and gulp plugins. You need to load all the gulp plugins in your gulpfile.js using require(), if you wish to use them.

var gulp = require('gulp'),

    jshint = require('gulp-jshint'),

    uglify = require('gulp-uglify'),

    concat = require('gulp-concat');
...