Skip to content
This repository has been archived by the owner on Apr 12, 2018. It is now read-only.

botify-labs/webpack-dependency-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

webpack-dependency-tree

Builds a dependency tree from webpack stats

Example

├── [email protected]
│   node_modules/react
├── [email protected]
│   node_modules/classnames
├── [email protected]
│   node_modules/immutable
├── [email protected]
│   node_modules/lodash
├── [email protected]
│   node_modules/font-awesome
├── [email protected]
│   node_modules/datatables
├── [email protected]
│   node_modules/style-loader
├── [email protected]
│   node_modules/css-loader
├─┬ [email protected]
│ │ node_modules/webpack
│ └─┬ [email protected]
│   │ node_modules/webpack/node_modules/node-libs-browser
│   └── [email protected]
│       node_modules/webpack/node_modules/node-libs-browser/node_modules/process
├── [email protected]
│   node_modules/react-bootstrap
└── [email protected]
    node_modules/jquery

API

fromStats(stats, [opts])

Builds a dependency tree from webpack stats.

opts can be:

  • opts.packageDescriptors: List of package descriptor files to look for in package directories. Defaults to ['package.json', 'bower.json', 'component.json']

treeToString(tree, [opts])

Converts a dependency tree to an ASCII hierarchy representation.

opts can be:

  • opts.pretty: Add colors and styles to the output
  • opts.fullPaths: Display full paths instead of relative paths.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published