We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 547f66a commit 48f540eCopy full SHA for 48f540e
src/utils/plugin.ts
@@ -0,0 +1,8 @@
1
+import _get from 'lodash.get'
2
+
3
+import siteConfig from '@/configs/site'
4
5
+const { plugins } = siteConfig
6
7
+export const isPluginEnabled = (pluginName: string) => typeof _get(plugins, pluginName) === 'object'
8
+export const getPluginConfig = (key: string) => _get(plugins, key)
0 commit comments