From 306f8ea03e97e3c873d8aff995bd8a68a2d6930c Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Tue, 6 Aug 2024 01:56:10 +0800 Subject: [PATCH] chore: tweak --- docs/.vuepress/config.ts | 6 + .../.vuepress/themes/components/ColorPick.vue | 13 +- docs/notes/tools/custom-theme.md | 5 - docs/package.json | 5 +- package.json | 10 +- plugins/plugin-content-update/package.json | 2 +- plugins/plugin-md-power/package.json | 12 +- plugins/plugin-search/package.json | 2 +- plugins/plugin-shikiji/package.json | 6 +- pnpm-lock.yaml | 966 ++++++++++-------- theme/package.json | 8 +- 11 files changed, 587 insertions(+), 448 deletions(-) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 14751530..43cf279c 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -1,6 +1,7 @@ import * as path from 'node:path' import { type UserConfig, defineUserConfig } from 'vuepress' import { viteBundler } from '@vuepress/bundler-vite' +import { addViteOptimizeDepsInclude, addViteSsrExternal } from '@vuepress/helper' import { theme } from './theme.js' export default defineUserConfig({ @@ -21,6 +22,11 @@ export default defineUserConfig({ pagePatterns: ['**/*.md', '!**/*.snippet.md', '!.vuepress', '!node_modules'], + extendsBundlerOptions(bundlerOptions, app) { + addViteOptimizeDepsInclude(bundlerOptions, app, '@simonwep/pickr') + addViteSsrExternal(bundlerOptions, app, '@simonwep/pickr') + }, + bundler: viteBundler(), theme, diff --git a/docs/.vuepress/themes/components/ColorPick.vue b/docs/.vuepress/themes/components/ColorPick.vue index 0beb0f71..925a8c44 100644 --- a/docs/.vuepress/themes/components/ColorPick.vue +++ b/docs/.vuepress/themes/components/ColorPick.vue @@ -1,23 +1,20 @@