Writing a plugin that can locate Sage's main.css

I’m writing a Maintenance mode plugin but I’d like it to use the theme’s current main.css file. But with the cache-busting filename, how can I do this?

Sage 9, btw.

Is the plugin Sage 9 specific? If so, could you just grab the name out of dist/assets.json?

Good idea, but I get an SSL PHP error using file_get_contents