Gulp + Webpack or JUST Webpack?

后端 未结 5 1196
难免孤独
难免孤独 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 18:07

    Honestly I think the best is to use both.

    • Webpack for all javascript related.
    • Gulp for all css related.

    I still have to find a decent solution for packaging css with webpack, and so far I am happy using gulp for css and webpack for javascript.

    I also use npm scripts as @Tetradev as described. Expecially since I am using Visual Studio, and while NPM Task runner is pretty reliable Webpack Task Runner is pretty buggy.

提交回复
热议问题