So, I'm building a content rating addon and would like to add the css/script to the header/footer of my site.

I've seen there is an event to add it to the CP header:

But how would I go about doing that for the actual site, from an addon?

I'm aware I could just manually drop it in the theme, but of course the goal is to just be able to drop the addon into the site/addon folder and have it automatically included on pages that have rating.

Or am I off here and there is a better way of including / minifying & optimizing assets for addons so that they are automatically included into the site .min.css & .min.js files?

Or is there nothing like that in Statamic and I have to build my own process in the addon that would process the assets with Gulp etc?