perf: optimize blog assets for low bandwidth
This commit is contained in:
@@ -14,6 +14,9 @@ export default defineUserConfig({
|
||||
|
||||
head: [['link', { rel: 'icon', href: '/favicon.png' }]],
|
||||
|
||||
shouldPrefetch: false,
|
||||
shouldPreload: false,
|
||||
|
||||
theme,
|
||||
bundler: viteBundler({
|
||||
viteOptions: {
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@@ -116,7 +116,14 @@ export default hopeTheme(
|
||||
blog: true,
|
||||
|
||||
// 启用本地搜索
|
||||
search: true,
|
||||
search: {
|
||||
isSearchable: (page) =>
|
||||
!page.path.includes('/work/log/') &&
|
||||
!page.path.includes('/demo/') &&
|
||||
!page.path.includes('/accounts/') &&
|
||||
!page.path.includes('SpringSecurity'),
|
||||
maxSuggestions: 10,
|
||||
},
|
||||
|
||||
// 组件配置
|
||||
components: {
|
||||
|
||||
Reference in New Issue
Block a user