webpack-tree-dependency

1.1.0 • Public • Published

Webpack dependency tree

NPM

This a webpack plugin that creates a dependency tree (JSON or HTML)

Install

npm install --save-dev webpack-tree-dependency

Usage

webpack.dev.config.js

var TreeWebpackPlugin = require('webpack-tree-dependency');
 
module.exports = {
  plugins: [new TreeWebpackPlugin()]
};

After starting the dev server you will be able to find the output file at:

localhost:port/filename.html (or .json)

Options

Name Type Default Description
directory {String} 'src' path to src folder from project root
extensions {Array<String>} ['js'] Files to include
filename {String} 'tree' output filename
emitHtml {Boolean} true emit HTML or JSON
new TreeWebpackPlugin({
    directory: 'path/to/folder',
    extensions: ['js', 'html'],
    filename: 'map',
    emitHtml: true
})

Package Sidebar

Install

npm i webpack-tree-dependency

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

10.9 kB

Total Files

6

Last publish

Collaborators

  • king-prawns