mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-14 03:06:43 +08:00
chore: 增加 code inspector
This commit is contained in:
@@ -53,6 +53,7 @@
|
|||||||
"babel-eslint": "^10.0.1",
|
"babel-eslint": "^10.0.1",
|
||||||
"babel-jest": "^23.6.0",
|
"babel-jest": "^23.6.0",
|
||||||
"babel-plugin-import": "^1.12.0",
|
"babel-plugin-import": "^1.12.0",
|
||||||
|
"code-inspector-plugin": "^1.2.10",
|
||||||
"eruda": "^1.5.7",
|
"eruda": "^1.5.7",
|
||||||
"eslint": "^5.16.0",
|
"eslint": "^5.16.0",
|
||||||
"eslint-plugin-prettier": "^3.1.0",
|
"eslint-plugin-prettier": "^3.1.0",
|
||||||
|
|||||||
@@ -31,6 +31,14 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
chainWebpack: config => {
|
chainWebpack: config => {
|
||||||
|
const { codeInspectorPlugin } = require('code-inspector-plugin');
|
||||||
|
|
||||||
|
config.plugin('code-inspector-plugin').use(
|
||||||
|
codeInspectorPlugin({
|
||||||
|
bundler: 'webpack',
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
// 移除 prefetch 插件
|
// 移除 prefetch 插件
|
||||||
config.plugins.delete('prefetch')
|
config.plugins.delete('prefetch')
|
||||||
// // 压缩代码
|
// // 压缩代码
|
||||||
|
|||||||
Reference in New Issue
Block a user