Make declaration minification safe

How about making the declaration minification safe and not relying on ngmin during build?