Ignoring entire sections on hugo build

I have a very static section of my website that has huge amounts of content.

When I compile the site it takes around 40 seconds, opposed to 4 seconds when that section is not included.

I would like to be able to set a flag in the config file to ignore that section. As far as I am aware, this should work ignoreFiles = [ โ€œ/partners/โ€ ]

However it does not, is there any other way to achieve this?

Thanks in advance :slight_smile:

ignoreFiles works fine with me. Must be something with the regexp that makes it not match, spelling? Try remove the slash at the end/start? On Windows, maybe some other slashes?

So do you mean that

`ignoreFiles = [ "/partners/" ]

Would ignore everything in the โ€œpartnersโ€ folder of the content folder?

Depending on the slash discussion (Unix vs Windows), yes.

But these are regexps, so

ignoreFiles = [ "partner" ]

Will also match โ€ฆ