I have a folder in my static folder called /vids/ and in my config.toml I have ignoreFiles = “/vids/”. This /vids/ folder contain some very large video files, perhaps 2GB+ each.
The problem I have is very slow compilation for the first compilation (minutes). Subsequent compilations are equally slow if I’m also running hugo server in a separate terminal. In any event, even if it’s just the first compilation that is slow, it doesn’t make sense to me why hugo is processing this file in some way. Is there any way around this?
How ignoreFiles works is a longer story (short version: It ignores content files), but I would recommend that you rather have a look at
There’s a includeFiles/excludeFiles on each mount, which should give you a fine grained control of what to include for each of the logical mount points (e.g. static).
I’d like to hear that story on how IgnoreFiles works. I will have a go at the mounts thing but the format of IgnoreFiles looked more straight forward to me.