Login
Remember
Register
Ask a Question
Is there any way to load all gulp plugins in one go?
0
votes
asked
Feb 15, 2020
in
JAVA
by
rahuljain1
Is there any way to load all gulp plugins in one go?
#gulp-plugin
Java-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Feb 15, 2020
by
SakshiSharma
Yes, there is. Rather than specifying require for each plugin, gulp-load-plugins will search your packages.json file and automatically include them as plugins.pluginName().
var gulp = require('gulp'),
var plugins = require('gulp-load-plugins')();
...