MorJS plugins - 插件配置

2023-11-07 16:35 更新
  • 類型: ?Plugin[]?
  • 默認(rèn)值: ?[]?

配置 MorJS 插件, 詳細(xì)參見如何開發(fā) MorJS 插件。

// 配置示例
{
plugins: [
[
'your_custom_mor_plugin',
{
/* 插件選項 */
}
],
// 或
'your_custom_mor_plugin',
// 或
{ name: 'plugin_name', apply(runner) {} },
// 或
new YourCustomMorJSPlugin()
]
}

// 自定義插件
class YourCustomMorJSPlugin {
name = 'YourCustomMorJSPlugin'
apply(runner) {
// plugin 邏輯
}
}


以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號