Is there any way to hook shaders during the build process in Unity?

Is there any way to hook shaders during the build process in Unity? I mean either after the FXC HLSL compiler or the HLSLcc part.

I also don`t know if I can use the OnProcessShader method:
https://docs.unity3d.com/ScriptReference/Build.IPreprocessShaders.html
to modify the hlsl shader.

Thanks in advance!