hugo: File watcher does not respect ignoreFiles setting

I’m using Hugo 0.26. Here is my list of ignoreFiles in config.toml:

ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]

When I edit a .Rmarkdown file, hugo server still rebuilds the site:

Change detected, rebuilding site
2017-08-17 12:02 -0500
Source changed "..../content/post/2017-08-09-test-rmarkdown.Rmarkdown": WRITE
Built site for language en:
0 draft content
0 future content
0 expired content
6 regular pages created
24 other pages created
1 non-page files copied
0 paginator pages created
5 tags created
3 categories created
total in 12 ms

It seems to be a regression from #1189.

About this issue

  • Original URL
  • State: open
  • Created 7 years ago
  • Reactions: 7
  • Comments: 17 (4 by maintainers)

Commits related to this issue

Most upvoted comments

I can also confirm this is still happening. Hugo Serve, on Hugo 0.26, ignores the ignoreFiles option.

The issue remains:

Syncing assets/scripts/index.js.tmp-browserify-42993960592106339469 to /

The ignoreFiles setting instructs Hugo to skip building content files during the “build” stage. The file watcher used to detect content changes does not currently use the ignoreFiles setting.

This still happens. Tested using:

ignoreFiles: [ "\\.tmp$", "\\.tmp\\-browserify" ]