{"id":13495891,"url":"https://github.com/web-infra-dev/webpack-inspector","last_synced_at":"2025-04-09T22:23:08.397Z","repository":{"id":55055888,"uuid":"522836033","full_name":"web-infra-dev/webpack-inspector","owner":"web-infra-dev","description":"Devtool for webpack.","archived":false,"fork":false,"pushed_at":"2023-02-10T08:37:16.000Z","size":641,"stargazers_count":97,"open_issues_count":2,"forks_count":6,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-01T22:08:20.043Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/web-infra-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-08-09T06:50:54.000Z","updated_at":"2025-01-02T10:00:59.000Z","dependencies_parsed_at":"2023-02-17T03:15:49.798Z","dependency_job_id":null,"html_url":"https://github.com/web-infra-dev/webpack-inspector","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-infra-dev%2Fwebpack-inspector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-infra-dev%2Fwebpack-inspector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-infra-dev%2Fwebpack-inspector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-infra-dev%2Fwebpack-inspector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web-infra-dev","download_url":"https://codeload.github.com/web-infra-dev/webpack-inspector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248120804,"owners_count":21051018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T19:01:39.326Z","updated_at":"2025-04-09T22:23:08.369Z","avatar_url":"https://github.com/web-infra-dev.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Webpack Inspector\n\n## Introduction\n\nWebpack dev tools to make performance analysis, error investigation and loader development more convenient. Provide the following functions:\n\n1. All modules and intermediate compilation results passed by the loaders.\n\n![devtool-0.png](https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/4deb18a92b8245caa1eeba9c0843db71~tplv-k3u1fbpfcp-watermark.image?)\n\n![devtool-1.png](https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/f8f994016e3e4a22be5339c43a0817fc~tplv-k3u1fbpfcp-watermark.image?)\n\n2. The time consuming of all loaders and the number of files they compile.\n\n![devtool-3.png](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/a617af7a430d4100ab177bb2da614b1c~tplv-k3u1fbpfcp-watermark.image?)\n\n3. Module dependency graph structure visualization.(Think of performance, the function will be closed when the number of modules is greater than 100)\n\n![devtool-4.png](https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/52c85f669cf843d1901868363cf04843~tplv-k3u1fbpfcp-watermark.image?)\n\n4. View the final config of webpack.\n\n![devtool-5.png](https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/328cfdff36034cd1bbf1e14c40a30772~tplv-k3u1fbpfcp-watermark.image?)\n\n5. View the webpack output chunk.\n![devtool-6.png](https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/000a454c179d451fb8156ae8f9bcc434~tplv-k3u1fbpfcp-watermark.image?)\n## Usage\n\n### 1. Install\n\n```bash\npnpm install @modern-js/inspector-webpack-plugin -D\n```\n\n### 2. Use in webpack\n\n```ts\n// webpack.config.ts\nimport { InspectorWebpackPlugin } from '@modern-js/inspector-webpack-plugin'\n\n// Add plugin\nexport default {\n  plugins: [new InspectorWebpackPlugin()]\n}\n```\n\n### 3. Custom Options\n\n```ts\nexport default {\n  plugins: [new InspectorWebpackPlugin({\n    // Custom the port of devtool page, which is 3333 by default.\n    port: 3456,\n    // Config the module that need to be ignored, ignore will not work by default.\n    ignorePattern: /node_modules/\n  })]\n}\n```\n\n## Credits\n\nThe UI interface implementation of inspector is modified from existing project [`vite-plugin-inspect`](https://github.com/antfu/vite-plugin-inspect).At the same time, webpack loader in the inspect got inspired by [`speed-measure-webpack-plugin`](https://github.com/stephencookdev/speed-measure-webpack-plugin).Thanks for them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-infra-dev%2Fwebpack-inspector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb-infra-dev%2Fwebpack-inspector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-infra-dev%2Fwebpack-inspector/lists"}