I used prerender-spa-plugin for pre-rendering in the vuejs project. The code is as follows
new PrerenderSPAPlugin({
staticDir: path.join(__dirname, "../dist"),
routes: ["/", "/help/fee", "/help/mnemonic", "/help/agreement", "/help/privacy", "/help/support", "/help/transaction-fail"],
}),
the current situation is that there seems to be no problem with packaging, and the content in html is indeed pre-rendered, as shown in figure
.
but running the project found that the css referenced by the page is valid, but the JS is all invalid, including the status will not change, events bound by dom can not be triggered, etc.