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


#1

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.


#2

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


#3

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