Vue.js Vue CLI 4.4.6生成的项目中未显示favicon的问题

Vue.js Vue CLI 4.4.6生成的项目中未显示favicon的问题,vue.js,favicon,vue-cli-4,Vue.js,Favicon,Vue Cli 4,到目前为止,我在使用最新版本的Vue CLI生成此项目时遇到了很大问题。favicon没有显示,我以前删除了公用文件夹中的/img文件夹,并将我自己的favicon.png添加到index.html文件中 当我运行proyect时,图标不显示,并且检查客户端代码,它会自动得到注释,如图所示。 如果修改注释行,我的自定义图标将正确显示,因此我想知道如何修复此问题 index.html文件 myApp 很抱歉,没有启用JavaScript,myApp无法正常工作。请使其继续。 正如您在代码中看

到目前为止,我在使用最新版本的Vue CLI生成此项目时遇到了很大问题。favicon没有显示,我以前删除了公用文件夹中的/img文件夹,并将我自己的favicon.png添加到index.html文件中

当我运行proyect时,图标不显示,并且检查客户端代码,它会自动得到注释,如图所示。 如果修改注释行,我的自定义图标将正确显示,因此我想知道如何修复此问题

index.html文件


myApp
很抱歉,没有启用JavaScript,myApp无法正常工作。请使其继续。
正如您在代码中看到的,我已经删除了最初生成的
,因为它对我没有用处。 非常感谢任何能帮助我的人

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="./favicon.png">
    <title> myApp </title>
  </head>
  <body>
    <noscript>
      <strong>We're sorry but myApp doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>