UNPKG

@vuepress/plugin-search

Version:
18 lines (15 loc) 397 B
const { path } = require('@vuepress/shared-utils') /** * @type {import('@vuepress/types').Plugin} */ module.exports = (options) => ({ alias: { '@SearchBox': path.resolve(__dirname, 'SearchBox.vue') }, define: { SEARCH_MAX_SUGGESTIONS: options.searchMaxSuggestions || 5, SEARCH_PATHS: options.test || null, SEARCH_HOTKEYS: options.searchHotkeys || ['s', '/'] } })