webpack5-WebpackDevServer、hotModuleReplaceMent、TreeShaking、webpackMerge、codeSplitting、lazyload、全局变量
devServerdevServer:{//这实现了与第一个示例相同的效果,//如果新的子域名需要访问devserver,//则无需更新您的配置allowedHosts:['.host.com','host2.com'],before:(app)=>{app.get('/some/path',function(req,res){res.json({custom:'response'});});},