-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The index.js within themes is ignored during the build process #942
Comments
Cannot reproduce it, could you provide more info?
|
I just created a reproduction repo to demonstrate it: https://github.com/SebastianNiemann/vuepress-issue-942 Within this, I am using a local theme. The reason is just that I found it easier to observe whether VuePress is loading Not sure what you meant by laptop's version, but if it is about the OS, I observed this under Windows 10. |
Maybe you should read the docs carefully, you just used a way that we didn't mention in the documentation. Move the See: Directory Structure. |
Understood. Just to give a little bit reasoning how we got here into the first place: We actually use absolute paths as theme directories within our projects (especially since everything works fine, despite this However, it seemed that our understanding about the To make sure, we looked into the source (currently at
Given that the top priority was to resolve absolute paths as theme paths (and all the code within @ulivz Having all that said, I would like to suggest a more specific documentation on the |
Thanks for pointing out the unsharpness, for now the documentation are still WIP, and after I closed this issue, I also took some time to rewrite the module resolver at 80cb1d5, for now the absolute and relative path are both well supported,but I need some time to refine the documentation. |
Awesome 🎉 This helps a lot. |
Bug report
Version
1.0.0-alpha.12
Steps to reproduce
Add the following
index.js
to a theme:What is expected?
The built process should fail with exit code 1, proving that
index.js
was called.What is actually happening?
The built process is successful, fully ignoring the
index.js
and therefore any options within it (esp.plugins
).Other relevant information
Compared to #928, the theme is included by simply stating its file path, instead of a dependency package
The text was updated successfully, but these errors were encountered: