2.0.1 • Published 1 year ago

@pluve/taro-plugin-mars v2.0.1

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
1 year ago

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>

2.0.1

1 year ago

2.0.0

1 year ago

1.1.1

4 years ago

1.1.0

4 years ago