Vue project deployed to github cannot find resources and cannot be previewed?

1. Local npm run build is packaged, and there is no problem with previewing on the local server

clipboard.png

2.:
1 npm run build config/index.js build assetsPublicPath: "/" assetsPublicPath: "./"
2 webpack.prod.conf.js removeAttributeQuotes false
3.gh-pages

clipboard.png
4.gh-pages

clipboard.png

clipboard.png

Dec.08,2021

/ WebReader/static/Engine.epub
is not
/ static/Engine.epub


is still not solved. This is the first vue demo, boss to tell me how to change it directly.


has the landlord solved the problem

  • Vue project cannot be previewed in GitHub Pages

    Warehouse address: Warehouse address 1. The project is in the dev branch 2. This is built with vue-cil, and then modified part of the code 3. Then modify the [index.js] file under the [config] folder and change [assetsPublicPath: ,] to [assets...

    Mar.14,2021
Menu