Skip to content
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

保存 vue 文件,md文件 不会实时更新,需要手动保存md文件 #7

Open
cjfff opened this issue Apr 3, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@cjfff
Copy link

cjfff commented Apr 3, 2020

版本
markdown-it-vuese 0.4.0
vuepress 1.4.0

描述一下 bug
行为跟这个链接的一致...#3

@cjfff cjfff added the bug Something isn't working label Apr 3, 2020
@BuptStEve
Copy link
Owner

回头我看看

@BuptStEve
Copy link
Owner

感觉是这里这个缓存的问题,试了下官方的 code snippet 也失去同步了...

https://github.com/vuejs/vuepress/blob/a6ae5082a709c3aefc89cd9d8c9ba464f6f52179/packages/%40vuepress/markdown-loader/index.js#L37

@cjfff
Copy link
Author

cjfff commented Apr 8, 2020

@BuptStEve

目前 vuepress 生成 cache 时候用的 内容 会包含 vuese 生成的注释吗?

源码部分看了一下,缓存的标记规则是 hash(file + src), src 如果是文件内容的话,应该是会更新才对

@BuptStEve
Copy link
Owner

文件指的是 md 文件,md 文件没变化,所以读的缓存

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants