Skip to content

Latest release 5.6.2 breaks webpack-favicons #1866

Closed
@aleho

Description

@aleho

The latest release broke webpack-favicons output for me.

Current behaviour 💣

With the example below on version 5.6.2 html/favicons.html will look like this:

<script defer src="/build/build_name/app/runtime.js"></script><script defer src="/build/build_name/app/app.js"></script><link href="/bu
ild/build_name/app/app.css" rel="stylesheet">

Expected behaviour ☀️

On version 5.6.0 it looked like this:

<link rel="shortcut icon" href="/build/build_name/app/favicons/favicon.ico"><link rel="icon" type="image/png" sizes="16x16" href="/b
uild/build_name/app/favicons/favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="/build/build_name/app/favicons/fa
vicon-32x32.png"><link rel="icon" type="image/png" sizes="48x48" href="/build/build_name/app/favicons/favicon-48x48.png"><script def
er src="/build/build_name/app/runtime.js"></script><script defer src="/build/build_name/app/app.js"></script><link href="/build/build_name
/app/app.css" rel="stylesheet">

Reproduction Example 👾

Using the following template and configuration:

<%= htmlWebpackPlugin.tags.headTags %>
<%= htmlWebpackPlugin.tags.bodyTags %>
new HtmlWebpackPlugin({
    template: 'html.tmpl',
    filename: 'html/favicons.html',
    minify:   false,
    inject:   false,
})

new WebpackFavicons({
    src:  'favicon.svg',
    path: 'favicons',
    icons: {
        favicons: true
    },
})

Environment 🖥

Node.js v20.17.0
linux 6.11.3-200.fc40.x86_64
Npm 10.9.0
webpack@5.95.0
webpack-favicons@1.3.8

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