# vue小图标 favicon不显示的解决方法 **Repository Path**: gqni/favicon ## Basic Information - **Project Name**: vue小图标 favicon不显示的解决方法 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-09-20 - **Last Updated**: 2020-12-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## vue小图标 favicon不显示的解决方法 ### 解决方案: > 1.直接将favicon.ico放到根目录,与src,static同级 > 2.在 webpack.dev.conf.js 文件里plugins里加入以下代码 ``` new HtmlWebpackPlugin({ filename: 'index.html', template: 'index.html', inject: true, favicon: './favicon.ico' }) ``` > 3.在index.html 中引入以下代码 ``` ``` > 4.确定以上步骤无误后,重新启动就好了,npm run dev