Closed reuixiy closed 5 years ago
me too, any solution??
Just modify true
to false
in _config.yml when you run hexo s
, and modify false
to true
before you plan to deploy
it to GitHub Pages. :joy_cat:
This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Just modify
true
tofalse
in _config.yml when you runhexo s
, and modifyfalse
totrue
before you plan todeploy
it to GitHub Pages. 😹
open_filter_optimize="enable: true # filter_optimize"
close_filter_optimize="enable: false # filter_optimize"
# 开启filter_optimize
sed -i "" "s/$close_filter_optimize/$open_filter_optimize/" _config.yml
hexo g && hexo deploy
# 关闭filter_optimize
sed -i "" "s/$open_filter_optimize/$close_filter_optimize/" _config.yml
wrote a script to solve this problem...
Guys, how something about development
option?
What about using NODE_ENV
?
What about using
NODE_ENV
?
Maybe an option in config would be better, because in most cases, hexo-filter-optimize
is not necessary for local developing.
What about using
NODE_ENV
?
Got ur idea, how can I manually set NODE_ENV
locally?
export NODE_ENV=developing
and check it in code ?
This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
本地
hexo s
调试时,与没有安装前相比,反应太慢,消耗了太多的 CPU 和内存,不太友好。能否作为一个单独功能?
比如用一个新的命令
hexo optimize
,这样每次 deploy 前执行一下hexo optimize
即可,不会影响本地调试。