Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
虽然 package.json 中仅定义了两个依赖,但最终会安装 290 个包。而实际上一个依赖
都不需要添加。
对于 hexo-fs,此项目使用到的几个 API,直接使用 Node.js 的 fs 模块就足够了。
hexo-fs 是添加了更多的文件 watch 等功能,此项目并没有用到。
对于 hexo-log,在
hexo
变量上,已经有初始化过的log
可以直接用,没必自己引入 hexo-log 再创建个实例。而且使用
hexo.log
还有个好处是 debug 和slient 等配置,还会继承用户执行
hexo
命令时使用的--debug
和--slient
等参数配置。