Does SPA have a way to determine the current route in index.html?

the younger brother of this project uses the vue bucket to make a single-page application.
now wants to render a skeleton of the current page before the app.js is loaded.
but the ui of each page is not exactly the same.

I would like to ask:
before webpack build is loaded into index.html (before the app.js file is loaded), is it completely impossible to get an accurate path to enter the route to determine what the current page is?

if you say the home page, do you judge whether the user entered from the home page ("/ "aboutus" page) instead of anything else (like" / aboutus" page) at all?

I don"t know if there is a plug-in for webpack that can handle this place.
is there a god who has similar experience in fire fighting

or experience of using prerender can be shared with younger brother

May.13,2021

can, in fact, location.path, can get


idea is probably to pack another skeleton screen js file, directly add to html, this can determine the path


can. All the routing information is in location.

Menu