optimize requirejs in production env only