npm install prerender-spa-plugin --save

const PrerenderSPAPlugin = require('prerender-spa-plugin');

const Renderer = PrerenderSPAPlugin.PuppeteerRenderer;

const path = require('path');

Vue seo预渲染处理

注意publicPath:‘/’ 否则打包后你配置页面会没有样式

Vue seo预渲染处理

 

2.安装 vue-meta-info

 

Vue seo预渲染处理

Vue seo预渲染处理

打完包后会发现已经是多页面

Vue seo预渲染处理

3. 全局安装anywhere

在dist目录下运行anywhere

查看源码

Vue seo预渲染处理

 

相关文章:

  • 2022-12-23
  • 2021-07-02
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
  • 2022-12-23
相关资源
相似解决方案