Hugo & Windows Defender

Yesterday I posted that excluded files were slowing down my build. Actually that was completely wrong, it was Windows Defender.

I found the solution was:

  1. Open Windows Security.
  2. Select “Virus and Threat Protection” > “Virus and Threat Protection Settings”.
  3. Scroll down and select “Add or Remove Exclusions”.
  4. Click “Add an Exclusion > Folder”, and add your Hugo project folder (not the folder where the executable is).

My builds went from hanging to happened in a matter of seconds.

P.

just to mention: if you do this, make sure to read: Performance - Virus Scanning and the linked document.

1 Like