Skip to content

Commit 6d9faad

Browse files
author
ws-wangjg
committed
chore: code inspector
1 parent 68ffdba commit 6d9faad

3 files changed

Lines changed: 313 additions & 0 deletions

File tree

package-lock.json

Lines changed: 308 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
"child_process": "^1.0.2",
134134
"circular-dependency-plugin": "^5.2.2",
135135
"clean-webpack-plugin": "^4.0.0",
136+
"code-inspector-plugin": "^0.20.10",
136137
"commitizen": "^4.3.1",
137138
"compression-webpack-plugin": "^11.1.0",
138139
"concurrently": "^9.1.2",

webpack/webpack.common.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
99
const WebpackBar = require('webpackbar')
1010
// const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin')
1111
const ESLintWebpackPlugin = require('eslint-webpack-plugin')
12+
const { codeInspectorPlugin } = require('code-inspector-plugin')
1213
const paths = require('./paths')
1314

1415
const isDev = process.env.NODE_ENV === 'development'
@@ -70,6 +71,9 @@ const config = {
7071
new Dotenv({
7172
path: path.resolve(__dirname, '..', dotEnv),
7273
}),
74+
codeInspectorPlugin({
75+
bundler: 'webpack',
76+
}),
7377
new HtmlWebpackPlugin({
7478
title: isDev ? 'Pro React Dev' : 'Pro React Admin',
7579
template: `${paths.public}/index.html`,

0 commit comments

Comments
 (0)