-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Vue press not loading the css and js files on building the project #1935
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
Comments
The paths to the CSS and JS files in |
I do not want to host it on any server , i want to load the documentation as a static files, is that not possible |
Loading the files on your own computer using the file protocol doesn't work, the files must be loaded using the HTTP protocol. But I guess you can simply use the npm package http-server (or similar) to serve the file over HTTP on your own computer. |
I have deployed it on netlify, but face the same issue there as well . https://technotes-543930.netlify.com/ |
@Shrishb You have set the |
I think @PeppeL-G is right. See relative vue-cli document If you prefer python and have python3 installed in your path, the code below should also work cd path/to/dist
python3 -m http.server |
Had same problem, I fix it by going to |
@Samk13 See: https://vuepress.vuejs.org/guide/deploy.html#github-pages For example, I use |
I ran into a similar issue with a subdirectory on a website
Why: Even if I cd to src, yarn will run vuepress build from the base of the repo (the directory containing package.json), and so it ignores .vuepress in src. DetailsI gave a complete explanation, including making the website from scratch and setting the correct config.js settings at an article I just made: Use VuePress to build static html files (on my website). Start at the "Static html file build settings" or just make sure of the following in config.js (this is a short summary of my solution at the article):
Consider closing the issue if everything works using those instructions. If you have further questions you can ask. |
I am using the latest version
you can find the complete issue on this link
https://stackoverflow.com/questions/57965012/vuepress-builds-broken-html-with-invalid-adresses-to-assets
please give me a solution
Bug report
Steps to reproduce
What is expected?
What is actually happening?
Other relevant information
npx vuepress info
in my VuePress project:The text was updated successfully, but these errors were encountered: