mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-12 00:56:43 +08:00
chore: 增加 code inspector
This commit is contained in:
@@ -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')
|
||||
// // 压缩代码
|
||||
|
||||
Reference in New Issue
Block a user