html-res-webpack-plugin icon indicating copy to clipboard operation
html-res-webpack-plugin copied to clipboard

给webpackConfig的output的chunkFilename增加querystring导致资源没匹配上

Open LukeLin opened this issue 6 years ago • 0 comments

发现html-res-webpack-plugin的一个问题,如果我给webpack的output的chunkFilename增加querystring参数 image path.extname返回的是.js?_tid=1 image 然后stats.assets对象的内容是 image 但md5HtmlRes方法里面做了removeQueryHash处理,导致newRoute匹配不上assets对象里的内容 image 最终导致vendor.js没有在html里面被引入进来

LukeLin avatar May 30 '19 04:05 LukeLin