@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.
- package/config.js +11 -0
- 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 ??= {});
|