mirror of
https://github.com/labring/laf.git
synced 2025-12-08 20:26:22 +00:00
* chore: harmonise eslint configuration * chore: add husky,stylelint,editorconfig --------- Co-authored-by: maslow <wangfugen@126.com>
24 lines
452 B
JavaScript
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,
|
|
}),
|
|
],
|
|
})
|