S
S
sasha2015-11-04 15:53:19
JavaScript
sasha, 2015-11-04 15:53:19

Why is webpack better than gulp/grunt?

I’m browsing the Internet and more and more often I stumble upon the fact that webpack is forcing. I looked through, looked and figured that I can’t understand why this thing also appeared if there is already gulp? how is it better?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
I
Ilya Kantor, 2015-11-04
@madmages

Webpack is a build system with tons of features. In particular, it parses JS code (as well as CSS or other, through loaders), this gives it superpowers.
Gulp/grunt is a general system for organizing tasks, which does not itself support assembly, but it can be written on it using plugins. At the same time, there will most likely be no code analysis, which means that a number of advanced features will disappear.
I mean, they are two different things. As one of the tasks on gulp / grunt, the webpack build may well be, and this is usually done.
It is quite possible to write a simple assembly on gulp/grunt directly. And if it’s more complicated or you just want to have a reserve “for the future”, then you can use a special tool (Webpack).
PS I used to have both gulp task assemblers and browserify, but Webpack has taken their place a long time ago.

M
Mikhail Osher, 2015-11-04
@miraage

Cooling theme.
Someone will come.
Personally, I don't like working with styles.
I'd rather do it the old fashioned way through gulp.
// EDIT July 2016
webpack is amazing

D
Deodatuss, 2015-11-04
@Deodatuss

happened to collide with webpack .... the assembly went on for 40 seconds, tin tin

A
Alexander Reshetnyak, 2018-07-29
@Vampireos

And now add npm scripts to all this)
.. some manifesto against the use of gulp, webpack, grunt, etc.
prgssr.ru/development/pochemu-npm-skripty.html

A
Alexey, 2019-03-25
@le2xx

Recently assembled my bike on webpack c pug/stylus/babel/autoprefixer works fine. Webpack is very good.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question