@voidzero-dev/vitepress-theme 4.2.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/config.js +11 -0
  2. package/package.json +1 -1
package/config.js CHANGED
@@ -51,6 +51,17 @@ export function extendConfig(c) {
51
51
  v.plugins ??= [];
52
52
  v.plugins.unshift(tailwindcss());
53
53
 
54
+ // avoid including @docsearch/css if using local search
55
+ if (c.themeConfig?.search?.provider === 'local') {
56
+ v.plugins.unshift({
57
+ name: 'remove-docsearch-css',
58
+ load: {
59
+ filter: { id: '**/@docsearch/css/dist/style.css' },
60
+ handler: () => ''
61
+ }
62
+ })
63
+ }
64
+
54
65
  // inject alias
55
66
  v.resolve ??= {};
56
67
  const al = (v.resolve.alias ??= {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidzero-dev/vitepress-theme",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "Shared VitePress theme for VoidZero projects",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",