Minify cross-domain resources

This PR will add in build process task for minifying cross-domain resources to keep them more lightweight.