As discussed here
http://discuss.gohugo.io/t/slow-to-work-with-large-number-of-static-files/2046
Update IgnoreFiles to also affect files in the static folder.
I'll work to fix that issue.
But I would like to discuss if is better create a separated method or I just use the hugo.copyStatic and checking if we need ignore file or not.
Will this also cover the /static folder of themes?
From my understanding this has already been merged.
However, despite having ignoreFiles = [ "\\.less$"] in my config.toml, Hugo still detect changes. What am I doing wrong @ffrizzo @spf13 ?

I'm wondering what is meant exactly for ignoreFiles. If I specify a.md there, do I mean content/a.md or a.md in the root?
BTW, I'm considering whether we should split ignoreFiles into 3 parts: ignoreContent, ignoreStaticFile and ignoreForWatch (files in there are not watched for site rebuilds).
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
I can't manage to make Hugo ignore static/css and static/js folders on hugo command with ignoreFiles: ["static/css/.*.css$", "static/js/.*.js$"]... the regex is right according to regex101, is this a Hugo bug?
@inwardmovement, please use the Discussion Forums.
I would really like to some progress on this issue / request. Here's an example. I have SASS folder under theme, which is precisely where it should live for my workflow, and I need it to be ignored from the build. However, the poorly documented "ignoreFiles" option only seems to target specific folders, again undocumented. It would be incredibly helpful, if this feature were simply broadened to accept any particular path.
I'm happy to have a go at contributing a pull request for this, if there's any general will to make the ignoreFiles option a little more versatile.
If this is still live, should it not be re-opened?
Yeah, this is still an issue.
@fmpwizard @spf13 can we get this re-opened as it's still an issue.
I think there are numerous similar issues like this, #4874
I鈥檝e sent PR https://github.com/gohugoio/hugo/pull/5649 to address this issue.
Please...Could someone address this very basic issue or feature request for us in the master branch and official release of Hugo? As it has been reflected over and over again in all the above discussions, it is a very stupid bug and super anoying.
Most helpful comment
I would really like to some progress on this issue / request. Here's an example. I have SASS folder under theme, which is precisely where it should live for my workflow, and I need it to be ignored from the build. However, the poorly documented "ignoreFiles" option only seems to target specific folders, again undocumented. It would be incredibly helpful, if this feature were simply broadened to accept any particular path.