chore: 增加 code inspector

This commit is contained in:
hz
2025-10-14 14:46:59 +08:00
parent 04f214ebb8
commit 6b6d5b6328
2 changed files with 9 additions and 0 deletions

View File

@@ -31,6 +31,14 @@ module.exports = {
}
},
chainWebpack: config => {
const { codeInspectorPlugin } = require('code-inspector-plugin');
config.plugin('code-inspector-plugin').use(
codeInspectorPlugin({
bundler: 'webpack',
})
);
// 移除 prefetch 插件
config.plugins.delete('prefetch')
// // 压缩代码