-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
hugo: Configurable ignore list (filename regular expressions) #1189
Comments
Because this isn't just about server and watching. See #1189
Your speed scares me. But thank you. |
Note my latest commit - I renamed it to ignoreFiles. |
And log error on invalid regexp. See #1189
I'm not sure what I'm doing wrong here, but I still face the same issue on I have The output of hugo serve:
Edit: From what I see here, it the lock file should be ignored by default. |
I have the exact same problem as @jethrokuan. Just did a
It doesn't say which file changed, only that a change was detected. Not a true deal-breaker, but when I edit in Sublime, it's really nice to have that live-reload vs. having to kill the hugo process and restart every time while I edit in emacs. |
The following inside `config.toml` will ignore files ending with `.foo` and `.boo`. ``` watchIgnoreFiles = [ "\\.foo$", "\\.boo$" ] ``` The above is is a list of Reqular Expressions, but note the escaping of the `\` to make TOML happy. Fixes gohugoio#1189
Because this isn't just about server and watching. See gohugoio#1189
And log error on invalid regexp. See gohugoio#1189
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Per http://discuss.gohugo.io/t/hugo-server-watch-should-ignore-emacs-lock-files/1265
Please add the ability to configure a list of regular expressions that specify filename patterns that
hugo server --watch
should ignore as triggers for rebuilding the site.For example, I would like to add
^\.#
(Emacs lock file symlink prefix) to the list to prevent hugo rebuild and browser reload every time I start editing a file.The text was updated successfully, but these errors were encountered: