Yes, r.js optimizer cannot load network resources so you don't even have much choice. 是的, r.js优化器无法加载网络资源,因此您甚至没有太多选择。 In your build profile you'll need to replace the path mappings with , as per the example: 在构建配置文件中,您需要按照示例将路径映射替换为 :
This way both development and minified version of your application will use the CDN version of dependency. 这样,您的应用程序的开发版本和缩小版本都将使用依赖项的CDN版本。