Should themes provide generated resources?

When Hugo pipes first came out, it was suggested that themes using pipes should provide the Hugo generated resources (e.g. files in resources/_gen) with their theme for situations where Hugo Extended wasn’t available (at the time I think Netlify was one place, and maybe some Windows users didn’t have the extended version).

I’ve just had this PR come in on my theme, and so I’m checking whether providing the resources/_gen folder is still considered best practice.

There is no downside as far as I can tell. It benefits non-extended users as you mentioned. And doesn’t harm other users.

Actually if you see the README of the theme’s repo it is required to commit the resources for reasons explained there:

1 Like