Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道除了连接和缩小我的 javascript 文件之外, RequireJS 的优化器 ( r.js ) 是否还有更多功能。
例如,我可以使用 Gulp 来缩小和连接我的文件吗? 他们的结果会一样吗?
谢谢
Gulp 不是用于缩小和连接文件的工具,而是用于各种开发自动化的框架,并且 Gulp 的模块可以做到这一点,以及您可以与 Gulp 一起使用的许多其他工具。
r.js 主要是为了优化代码。你也可以一起使用 r.js 和 Gulp。