How can I see a list of all files found and bundled using the API, much like browserify's --list
command-line option?
var browserify = require('browserify');
var b = browserify('main.js').bundle();
You can listen to the dep
event, which is triggered for every dependency going through the pipeline:
var b = browserify('main.js');
b.on('dep', function(dep) {
console.log(dep.file);
});
b.bundle();
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments