You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just testing function to be executed before hexo exit, but why the function triggered before all events completed ?
todo:
manipulate the html code using JSDOM, then cache it so as not to process the same (duplicate) html string. then save it in file as cache before hexo exit (on exit) and restore that cache to object when hexo ready (on ready).
the manipulation process will be repeated if the page content changes (updated or edited), otherwise it will be returned according to the stored cache.
cache will be cleared when triggered by hexo clean.
in my case testing hexo event, i want to:
saving object cache to file before hexo exit hexo.on('exit')
restore object cache from file after hexo ready hexo.on('ready')
This is from my own plugin
// packages/hexo-seo/src/index.tshexo.on("exit",()=>{console.log("Scheduling functions on process exit");});
Others
The text was updated successfully, but these errors were encountered:
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.
Please check followings before submitting a new issue.
hexo version
to check)Environment & Settings
Behavior
I just testing function to be executed before hexo exit, but why the function triggered before all events completed ?
todo:
manipulate the html code using JSDOM, then cache it so as not to process the same (duplicate) html string. then save it in file as cache before hexo exit (on exit) and restore that cache to object when hexo ready (on ready).
the manipulation process will be repeated if the page content changes (updated or edited), otherwise it will be returned according to the stored cache.
cache will be cleared when triggered by
hexo clean
.in my case testing hexo event, i want to:
hexo.on('exit')
hexo.on('ready')
This is from my own plugin
Others
The text was updated successfully, but these errors were encountered: