How to do seo optimization for vue project?

One, ssr

The principle of vue-cli+nuxt.js ssr is server-side rendering and then return. If you use nuxt, it is best to use it at the beginning of the project, otherwise you will have to refactor the code, which is time-consuming and costly, and the pressure on the server is relatively high. But the advantage is that the first screen loading speed will be faster.

2. Pre-rendering: prerender-spa-plugin

Only for some pages. If it is a detail page, and hope that seo includes the information of each detail page, it is not suitable. Or if the project is too large, there are too many configurations, and packaging will be very long.

Reference 1: https://www.jianshu.com/p/56949dab75e5

参考 2 :https://www.cnblogs.com/Man-Dream-Necessary/p/10141717.html

参考3:https://blog.csdn.net/weixin_41049850/article/details/81945201

Reference 4: https://www.jb51.net/article/164285.htm   [Four methods]

Guess you like

Origin blog.csdn.net/qq_42269433/article/details/106838947