Skip to content

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

@LukeLin

Description

@LukeLin

发现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里面被引入进来

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions