issue #23962: compile and serve extension css

I realize this code is ugly.