Skip to content

the src of script is wrong with html-webpack-plugin v5.3.1 #202

@greenHandOnWeb

Description

@greenHandOnWeb

1.the config:
plugins:[ new HtmlWebpackPlugin({ template: './src/index.html' }), new webpack.DllReferencePlugin({ manifest: resolve(__dirname, 'dll/manifest.json') }), new AddAssetHtmlWebpackPlugin({ filepath: require.resolve("./dll/jquery.js") }) ]
2.run 'webpack'
success
3.but the inserted script label is wrong

inserted script
<script defer="defer" src="auto/jquery.js"></script>

the src should be 'jquery.js' rather than 'auto/jquery.js'

4.It's may a bug, would you mind give some advice?

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