fixes issue with angular when minifying assets for production