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