To clarify, that’s not a top-level configuration option. It is one of the build options, set at the page level, or cascaded down from an ancestor or from the site config.
This seems to be similar to a previous topic:
https://discourse.gohugo.io/t/preventing-image-page-resources-from-being-published/55883