How to set favicon.ico properly on vue.js webpack project?
问题 I have created a vue webpack project using vue-cli . vue init webpack myproject And then ran the project under dev mode: npm run dev I got this error: Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/favicon.ico So inside webpack, how to import the favicon.ico correctly? 回答1: Check out the Project Structure of webpack template: https://vuejs-templates.github.io/webpack/structure.html Note that there is a static folder, along with node