I'm using the gulp-load-plugins
, and I'm trying to print the loaded plugins:
console.log(JSON.stringify(plugins));
but it only prints {}
.
Is there anyway to print the loaded plugins and the names assigned to the plugins.
UPDATE: Got it working:
- Set lazy loading to false
add
console.log(plugins);
after the runnung taskvar plugins = require('gulp-load-plugins')({lazy:false});
...
gulp.task('default', ['styles']);
console.log(plugins);
In the code of the plugins, you can see that the properties of the object returned are defined with
And this method allow to set not enumerable properties. So the properties you are looking for don't appear.
I agree that this is "bizarre" as it would help the developper to trace which plugin are actually available.