The resources packaged by webpack are only reported as 404 on individual pages.

after the static resources are packaged, there is a problem only with the routes referenced on individual pages, and the deployment environment is nginx.

clipboard.png

clipboard.png

the above is the compressed js file under the same packaged file, with different page references in the same environment.

Mar.05,2021

is caused by the mode of vue-router 's history. If you change it to hash, you can


you can see that the url referenced on different pages is different. Your publicPath is not written correctly, is it?

Menu