我有一个发布在enter link description here上的Vuepress项目https://github.com/hanxue/wujiquan-vuepress。目录结构和config.js运行良好。
但是在我的本地机器上,当我运行相当于vuepress dev docs的yarn run build时,页面不能正确呈现。
不过,生成静态站点是可行的
yarn run build
python -m http.server -d docs\.vuepress\dist 8080环境
"vuepress": "^1.0.0-alpha.24"
node: v10.16.0发布于 2019-10-27 23:42:32
这类似于https://github.com/vuejs/vuepress/issues/1935
HTTP和JS文件在index.html中的路径是绝对的(以/开头),因此使用文件协议查看index.html是不起作用的(您需要将其托管在服务器上,以便使用
协议)。
https://stackoverflow.com/questions/57131819
复制相似问题