How to stop Hugo from generating the resources folder?

How to stop this using hugo serve? Only adding this to local test site.

The resourceDir is generated automatically under a project’s root.
It holds the various cached resources that are generated by Hugo.

You can configure it as per the documentation but you cannot disable it, as far as I know.

Also you can add the folder to a .gitignore file if you don’t want it under version control.

I have my test files and deployed site in different folders locally. I have to delete this folder with every copy-pasting of files between the two folders. I was thinking of not doing this on every copy-paste.

You can use two different config files one for development and one for production.

Make sure that the resourceDir in the development config is different than the one for production and don’t include it under version control.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.