老师,我在vue-cli4中使用了路由的history模式,发现favicon.icon在打包前是可以显示的,但是打包后就显示不出来了,请问老师是什么原因,应该如何解决
项目放在nginx的根目录下,直接通过localhost/index.html访问
public/index.html
<!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,
minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>Sonic</title>
</head>
<body>
<div id="app"></div>
</body>
</html>
router/index.js
const router = new VueRouter({
mode: 'history',
base: '/',
routes
})