List files from browserify bundle

Ricky Boyce

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();
Felix Kling

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to bundle a non-minified and minified js files with browserify

From Dev

Browserify bundle undefined dependency

From Dev

Karma Browserify bundle error

From Dev

Browserify bundle undefined dependency

From Dev

Multiple node modules in a browserify bundle

From Dev

Browserify bundle.js demystified

From Dev

Multiple node modules in a browserify bundle

From Dev

Browserify - create bundle with external module

From Dev

Grunt browserify transform ReactJS then bundle

From Dev

gulp browserify + reactify not creating bundle

From Dev

Bundle prebuilt Realm files from Xamarin

From Dev

How to use Gulp to create a separate vendor bundle with Browserify from Bower components

From Dev

Calling a Browserify TypeScript bundle from asp.net MCV page using plain JavaScript

From Dev

Browserify order of files

From Dev

Touch files from a list of files

From Dev

How to use browserify to bundle a backbone app?

From Dev

Where to put 'use strict' in Browserify bundle

From Dev

browserify bundle electron app main process file

From Dev

Making Browserify bundle play nice with ReactDevTools

From Dev

How does the bundle order work in browserify?

From Dev

gulp browserify bundle time takes too long

From Dev

How to bundle multiple javascript libraries with browserify?

From Dev

Running multiple transforms on gulp/browserify bundle

From Dev

Why is it necessary to install Browserify twice to bundle

From Dev

Browserify, is it possible to bundle common modules into seperate file?

From Dev

Making Browserify bundle play nice with ReactDevTools

From Dev

Why is it necessary to install Browserify twice to bundle

From Dev

Browserify produces an unusable bundle.js

From Dev

From files to list of lines

Related Related

  1. 1

    How to bundle a non-minified and minified js files with browserify

  2. 2

    Browserify bundle undefined dependency

  3. 3

    Karma Browserify bundle error

  4. 4

    Browserify bundle undefined dependency

  5. 5

    Multiple node modules in a browserify bundle

  6. 6

    Browserify bundle.js demystified

  7. 7

    Multiple node modules in a browserify bundle

  8. 8

    Browserify - create bundle with external module

  9. 9

    Grunt browserify transform ReactJS then bundle

  10. 10

    gulp browserify + reactify not creating bundle

  11. 11

    Bundle prebuilt Realm files from Xamarin

  12. 12

    How to use Gulp to create a separate vendor bundle with Browserify from Bower components

  13. 13

    Calling a Browserify TypeScript bundle from asp.net MCV page using plain JavaScript

  14. 14

    Browserify order of files

  15. 15

    Touch files from a list of files

  16. 16

    How to use browserify to bundle a backbone app?

  17. 17

    Where to put 'use strict' in Browserify bundle

  18. 18

    browserify bundle electron app main process file

  19. 19

    Making Browserify bundle play nice with ReactDevTools

  20. 20

    How does the bundle order work in browserify?

  21. 21

    gulp browserify bundle time takes too long

  22. 22

    How to bundle multiple javascript libraries with browserify?

  23. 23

    Running multiple transforms on gulp/browserify bundle

  24. 24

    Why is it necessary to install Browserify twice to bundle

  25. 25

    Browserify, is it possible to bundle common modules into seperate file?

  26. 26

    Making Browserify bundle play nice with ReactDevTools

  27. 27

    Why is it necessary to install Browserify twice to bundle

  28. 28

    Browserify produces an unusable bundle.js

  29. 29

    From files to list of lines

HotTag

Archive