一款名为 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>',
},
},
],
]
}
object
自定义预渲染
boolean
是否启用
Array
排除的页面,默认不排除任何页面,即默认所有页面都启用
string
预渲染 xml
, 默认为 <view>loading...</view>