Skip to content

uoau/webpack-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

This extension will show the dependency tree when webpack is built. You can see the project structure clearly.

Usage

First, you need install dependency-tree-webpack-plugin 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 your project, a dependency-tree.json 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published