Add option to specify a callback when compilation of all resources completes. Useful for 1-off compilations in production.