Are both amd-optimize and gulp-requirejs-optimize, used to package requirejs modules?

I would like to ask you, recently, I am learning that requirejs, knows that r.js is used to package requirejs modules. But now I want to package the requirejs module with r.js in conjunction with gulp.

read a lot of tutorials, and many of the tutorials in previous years mentioned using amd-optimize,. I also saw that the most recent articles are using gulp-requirejs-optimize. What exactly are these two things for?

if any of the gods have time, can you teach me how to package the requirejs module with gulp and r.js in the comments? Or does gulp have a better way to package requirejs modules?

Thank you ~

Menu