-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not to delete other non-hexo directory when do generation #1310
Comments
@wudong If you put your folder in |
I understand that. but for me the content of |
It's impossible currently. Hexo doesn't know what files should be deleted unless it saves the last generation results. |
@wudong can't your gulp task write to |
wouldn't it be a nice feature to have? make it much easier to integrate with other stuff. maybe an option in the site config? @borisschapira Don't really want to mess the source dir with generated code, which shouldn't be in version control as well. |
I also ran into this where it is deleting gz files I created. Nginx can serve pre-compressed files instead of doing it on the fly. |
Changes: - Rewrite Box. - Process files during loading file list. - Delay file hash check. Use File.changed() to check if file changed. - Remove watch delay. - Parallel processing. - Save rendered content in warehouse. It really saves a lot of time. - Rewrite generate console. - Cache rendered content so we don't have to render it again. - Load file list from cache. Don't delete other files in public folder. Resolve #1310 - Remove file stat check. - Parallel generating. - Resolve race conditions. Known issues: - Parallel processing and parallel generating may cause race conditions. We have to solve this in warehouse. - Tests are not updated yet.
I have a Hexo generated site and inside it along within the hexo target directory (
/public
) there is a directory called app (/public/app
) which contains content that are not generated by hexo.The problem I have now is that this directory (
/public/app
) 's content will be deleted whenever I runhexo generate
. Is there any configuration to prevent this from happening?The text was updated successfully, but these errors were encountered: