laf/docs/vite.config.js
0fatal fcab6067cf
chore: harmonise lint configuration (#1688)
* chore: harmonise eslint configuration

* chore: add husky,stylelint,editorconfig

---------

Co-authored-by: maslow <wangfugen@126.com>
2023-11-16 14:50:15 +08:00

24 lines
452 B
JavaScript

//vite.config.js
import { defineConfig } from 'vite'
import { SearchPlugin } from 'vitepress-plugin-search'
export default defineConfig({
base: './',
server: {
port: 5173,
hmr: false,
disableHostCheck: true,
},
plugins: [
SearchPlugin({
encode: false,
tokenize: 'full',
previewLength: 62,
buttonLabel: 'Search',
placeholder: 'Search docs',
cache: true,
context: false,
}),
],
})