I found a project on GitHub and imitated it. After npm run build is packaged, I can use http-server to open the page on my local machine, but uploading the contents of the dist folder to GitHub and Coding cannot.
It’s normal locally!
This is on GitHub, no error is reported
GitHub address
Coding address
Please help me clear up my doubts
阿神2017-05-19 10:11:45
There will be this error when you open it for the first time, the favicon cannot be found