Skip to content

Strange asset name when used with webpack v5.0.0-rc.3 #1522

Closed
@jeffposnick

Description

@jeffposnick

Expected behaviour

html-webpack-plugin, when used with webpack v5.0.0-rc.3, should emit assets that have proper names, corresponding to the assets' URLs.

Current behaviour

As mentioned at webpack/webpack#11425 (comment), I'm seeing assets with names like __child-HtmlWebpackPlugin_0 when my own webpack plugin inspects the assets created by the html-webpack-plugin child compilation.

Environment

html-webpack-plugin v4.5.0 and webpack v5.0.0-rc.3.

Relevant Links

The test case that exercises this code is https://github.com/GoogleChrome/workbox/blob/webpack-v5/test/workbox-webpack-plugin/node/v5/generate-sw.js#L450-L497

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