1.1.0 • Published 6 years ago

webpack-tree-dependency v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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

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