New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

dependency-tree-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dependency-tree-webpack-plugin

get dependency tree from webpack.

latest
Source
npmnpm
Version
1.0.12
Version published
Weekly downloads
109
41.56%
Maintainers
1
Weekly downloads
 
Created
Source

Intro

This webpack plugin can export the dependencies of your project as JSON files.

Usage

First, you need install it in your project.

npm i dependency-tree-webpack-plugin -D

Second, Add webpack plug to your project.

const DependencyTreePlugin = require('dependency-tree-webpack-plugin').default;

...
    plugins:[
        ...,
        new DependencyTreePlugin(),
    ]
}

Then, just run it, a dependency-tree file will appear in your root directory. The content of this file will look like this.

What's the use of this JSON

You need install the VSCode extension webpack tree, And load the json file, and it will generate a tree view in the sidebar, like this.

You can take the initiative to load the JSON file, or the VSCode extension will automatically search the / folder, build folder, .Vscode folder in the directory to find this file dependency-tree.json.

This tree is made up of project dependencies, and you can clearly understand the structure of the project. you can jump quickly between these files.

FAQs

Package last updated on 10 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts