UNPKG

vuepress-plugin-baidu-seo-next

Version:
19 lines (18 loc) 526 B
import { info, error } from './utils.js'; import { path, getDirname } from "@vuepress/utils"; const __dirname = getDirname(import.meta.url); export const baiduSeoPlugin = (options) => (app) => { if (options.hm) { info('running...'); } else { error('option hm is required!'); } return { name: "vuepress-plugin-baidu-seo-next", define: { __BAIDU_SEO_OPTIONS__: options }, clientConfigFile: path.resolve(__dirname, '../client/config.js'), }; };