2021-02-11 21:31:41 +08:00

15 lines
345 B
JavaScript

const { path } = require('@vuepress/shared-utils')
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', '/']
}
})