What's the difference between using Gulp and r.js to build by javascript app?

181 Views Asked by At

I was wondering if RequireJS's Optimizer (r.js) does more besides concatenating and minifying my javascript files.

For example, could I use Gulp to minify and concatenate my files?
Their result would be the same?

Thank you

1

There are 1 best solutions below

2
On

Gulp is not a tool for minifying and concatenating files, but rather a framework for all sorts of developement automation, and there are modules for Gulp which do exactly that, as well as many other tools that you can use with Gulp.

r.js is mainly for optimization of the code. You can also use r.js and Gulp together.