MorJS 使用运行时插件/解决方案
- 运行时插件/解决方案需要在
app.ts
文件中进行引入,加入到对应配置项中即可
import { aApp } from '@morjs/core'
import RuntimePluginXXX from 'your-runtime-plugin-name'
import RuntimeSolutionXXX from 'your-runtime-solution-name'
aApp(
{
onLaunch() {
console.log('app onlaunch')
}
},
[
RuntimeSolutionXXX(),
() => {
return {
plugins: [new RuntimePluginXXX()]
}
}
]
)