-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary dependencies (#171)
虽然 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` 等参数配置。 Signed-off-by: val <gwval3344@foxmail.com> Co-authored-by: val <gwval3344@foxmail.com>
- Loading branch information
Showing
2 changed files
with
2 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters