Revert "页面加载响应慢优化"

This reverts commit 7111b7d9
This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-09-07 13:14:37 +08:00
parent 4cc093fd27
commit 373d81ea4e
36 changed files with 337 additions and 344 deletions

View File

@@ -24,12 +24,14 @@ module.exports = {
chainWebpack: config => {
// 移除 prefetch 插件
config.plugins.delete('prefetch')
// 压缩代码
config.optimization.minimize(true)
// 分割代码
config.optimization.splitChunks({
chunks: 'all',
})
// 或者
// 修改它的选项:
// config.plugin('prefetch').tap(options => {
// options[0].fileBlacklist = options[0].fileBlacklist || []
// options[0].fileBlacklist.push(/myasyncRoute(.)+?\.js$/)
// return options
// })
},
devServer: {
// host:'localhost',