Socket
Book a DemoInstallSign in
Socket

webpack-modules-graph-plugin

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-modules-graph-plugin

A webpack plugin to generate a graph of the modules in the build

1.3.3
latest
Source
npmnpm
Version published
Weekly downloads
150
-17.13%
Maintainers
1
Weekly downloads
 
Created
Source

Webpack Modules Graph Plugin

This Webpack plugin generates a visual graph representing the modules in your project, including dependencies, to help you visualize and understand your project's structure better.

Features

  • Generates an interactive graph of your Webpack modules.
  • Offers customizable options to include/exclude specific modules.
  • Provides a clear visual distinction between different types of modules (e.g., project files, node_modules, assets).
  • Supports color customization for module groups through a user interface.
  • Offers a search feature to find specific modules in the graph.

Installation

npm i --save-dev webpack-modules-graph-plugin

yarn add --dev webpack-modules-graph-plugin

Usage

const ModulesGraphPlugin = require("webpack-modules-graph-plugin")

module.exports = {
  plugins: [
    new ModulesGraphPlugin({
      // Options here
      openFile: true, // Open the generated file in the browser
      filename: "modules-graph.html", // Output file
      showOnlyProjectFiles: false, // Customize according to your needs
    }),
  ],
}

Options

filename: Name of the output HTML file containing the graph. showOnlyProjectFiles: Boolean to show only project files, excluding node_modules.

Example

example of the UI interface example of a large graph

Keywords

webpack

FAQs

Package last updated on 02 Apr 2024

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.