Gulp + Webpack or JUST Webpack?

后端 未结 5 1192
难免孤独
难免孤独 2021-01-29 17:11

I see people using gulp with webpack. But then I read webpack can replace gulp? I\'m completely confused here...can someone explain?

UPDATE

in the end I starte

5条回答
  •  再見小時候
    2021-01-29 17:59

    The concepts of Gulp and Webpack are quite different. You tell Gulp how to put front-end code together step-by-step, but you tell Webpack what you want through a config file.

    Here is a short article (5 min read) I wrote explaining my understanding of the differences: https://medium.com/@Maokai/compile-the-front-end-from-gulp-to-webpack-c45671ad87fe

    Our company moved from Gulp to Webpack in the past year. Although it took some time, we figured out how to move all we did in Gulp to Webpack. So to us, everything we did in Gulp we can also do through Webpack, but not the other way around.

    As of today, I'd suggest just use Webpack and avoid the mixture of Gulp and Webpack so you and your team do not need to learn and maintain both, especially because they are requiring very different mindsets.

提交回复
热议问题