Replies: 1 comment
-
Resolved, wildcards** go a long way! https://vitepress.dev/reference/site-config#srcexclude publicExclude = ['**/hidden_dir_A/**', '**/hidden_dir_B/**', '**/hidden_dir_C/**'] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm needing two build processes. A build process that includes a sub-directory and the markdown files of that directory, and another that excludes that sub-directory, completely ignoring it and its markdown file content.
I've used logic within the config.js file that dictates navigation to look a certain way, including / excluding menu items. It works well. But the ignored target sub-folder and its content is still building into the distribution folder. Rather than remove them from the post-build, I'm needing a method to exclude them from the build process altogether.
I'm exploring srcExclude, for example;
config.mjs
However the excluded directories and their content are still rendering into HTML and finding their way to my dist folder. I can delete them from this folder after the build, but I'd really prefer the desired folders/files being ignored for this build. (They're only to be ignored in specific builds, as I have a logic gate that dictates whether they're to be included or not, the navbars and sidebars work and are ignored as desired, just not the actual content - which is a problem).
Appreciate any help.
Beta Was this translation helpful? Give feedback.
All reactions