1.

What Is Require() In Gulpfile.js?

Answer»

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.

  1. VAR gulp = require('gulp'),
  2. jshint = require('gulp-jshint'),
  3. uglify = require('gulp-uglify'),
  4. concat = require('gulp-concat');

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.



Discussion

No Comment Found