chore: turn on the preload
This commit is contained in:
		@@ -49,8 +49,11 @@ module.exports = {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  chainWebpack(config) {
 | 
					  chainWebpack(config) {
 | 
				
			||||||
    config.plugins.delete('preload') // TODO: need test
 | 
					    // it can improve the speed of the first screen, it is recommended to turn on preload
 | 
				
			||||||
    config.plugins.delete('prefetch') // TODO: need test
 | 
					    // config.plugins.delete('preload')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    // when there are many pages, it will cause too many meaningless requests
 | 
				
			||||||
 | 
					    config.plugins.delete('prefetch')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // set svg-sprite-loader
 | 
					    // set svg-sprite-loader
 | 
				
			||||||
    config.module
 | 
					    config.module
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user