1 | const { path } = require('@vuepress/shared-utils')
|
2 |
|
3 | module.exports = (options) => ({
|
4 | alias: {
|
5 | '@SearchBox':
|
6 | path.resolve(__dirname, 'SearchBox.vue')
|
7 | },
|
8 |
|
9 | define: {
|
10 | SEARCH_MAX_SUGGESTIONS: options.searchMaxSuggestions || 5,
|
11 | SEARCH_PATHS: options.test || null,
|
12 | SEARCH_HOTKEYS: options.searchHotkeys || ['s', '/']
|
13 | }
|
14 | })
|