Im not on very firm grounds when it comes to C++ in Unreal, but what came to my mind spontaneously is:
Write a little piece of code that uses the asset registry to find all blueprint assets in the project.
Invoke compilation on them (basically the same what the compile button does)
Then wrap that piece of code in a Blutility or make a menu entry for it.
Or would it be more complicated than that?