Gulp or Webpack?
First of all, Gulp and Webpack are not beasts of the same kind. Gulp is a task runner, which you can use for various tasks like minify, run sass to css conversion, copy and rename files etc etc. Anything your heart desires.
Webpack is a module bundler. It’s main purpose is to generate static assets from the application modules and dependencies. If you need tasks, you use npm/yarn with package.json.
So you choose between flexibility/power (gulp) and ease of use (webpack).
Webpack is built into the latest versions (5.x) of Rails, which can be good to know.
Read more: