hexojs / hexojs/warehouse

关于文件重复加载的问题

Open
#8 0 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
206
Forks
22
PR merge metrics
No merged PRs in 30d

Description

你好,我尝试在hexo generate之前对文件进行了一些额外的修改:去掉文件日期标题等描述/自定义的归档目录等,并在文件被修改的时候,同步至hexo,此时,如果hexo处于watch状态,第一次运行hexo server的时候,必定出错,错误一定为第一个文件已经存在。

重新执行一次hexo s可以正常的继续使用hexo,或者索性把代码中读取本地缓存的部分干掉也能达到类似的效果,然而上面的方式都是治标不治本的,请问是否考虑处理掉这个问题呢?

https://github.com/hexojs/hexo/blob/master/lib/plugins/processor/asset.js#L78

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.