@pluve/taro-plugin-mars

2.0.1 • Public • Published

taro-plugin-mars

一款名为 Mars 的 taro 插件

安装

yarn add @pluve/taro-plugin-mars -D

使用

const config = {
  plugins: [
   [
      '@pluve/taro-plugin-mars',
      {
        prerender: {
          enable: true,
          exclude: ['pages/example/index'],
          xml: '<view>loading...</view>',
        },
      },
    ],
  ]
}

参数说明

prerender

object

自定义预渲染

prerender.enable

boolean

是否启用

prerender.exclude

Array

排除的页面,默认不排除任何页面,即默认所有页面都启用

prerender.xml

string

预渲染 xml, 默认为 <view>loading...</view>

Readme

Keywords

Package Sidebar

Install

npm i @pluve/taro-plugin-mars

Weekly Downloads

0

Version

2.0.1

License

MIT

Unpacked Size

11.1 kB

Total Files

10

Last publish

Collaborators

  • fuqiting
  • zhaoyajie
  • annan1220
  • pengfeng365
  • plutolove
  • vdfor
  • ddg-dany
  • yangwend
  • yaqin8023
  • damonchen
  • lee2545
  • abel0222
  • stevenluo
  • xiongyan
  • deng_cheng