Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 796 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 796 Bytes

remax-prerender-plugin

插件借用了taro的预渲染方案源代码在这里),只是针对Remax的微信平台做了适配,切勿在其他平台上使用。欢迎大家PR或者fork。

安装

npm install @monsterlee/remax-prerender-plugin or yarn add @monsterlee/remax-prerender-plugin

使用

const prerenderPlugin = require('@monsterlee/remax-prerender-plugin');

module.exports = {
  plugins: [prerenderPlugin({
    pages: [
      'pages/index/index' // 需要预渲染的页面
    ]
  })]
};

配置

  • pages,需要预渲染页面的数组

LICENSE

MIT