UNPKG

@vuepress/plugin-theme-data

Version:

VuePress plugin - theme data

9 lines (8 loc) 385 B
import { getDirname, path } from '@vuepress/utils'; import { prepareThemeData } from './prepareThemeData.js'; const __dirname = getDirname(import.meta.url); export const themeDataPlugin = ({ themeData, }) => ({ name: '@vuepress/plugin-theme-data', clientConfigFile: path.resolve(__dirname, '../client/config.js'), onPrepared: (app) => prepareThemeData(app, themeData), });