The basic differences between gulp and Webpack:
Gulp can be js,html,css,img compressed packaging, is an automated build tool, you can compress multiple JS files or CSS into a file, and can be compressed into a single line, so as to reduce the file volume, speed up requests and reduce the number of requests And Gulp has a task definition to process transactions, thus building the overall process, which is a flow-based automated build Tool.
Webpack is a front-end build tool that enables modular development and file Processing. His idea is that "everything is a module," which can load individual modules on demand without causing useless or redundant code to be Loaded. So he has a name called the front-end modular packaging Tool.
as far as I am concerned , I will use both of them in practice. Although both can be code compression combined to reduce the code volume, but gulp.config.js in the Gulp code more simple to understand, need to compress who use which method, and Webpack style merge need to download the plugin in the node environment to Use. Another point, gulp is based on the flow of packaging tools, who need to refer to who, and his compression is simple and clear, later maintenance convenient, Webpack can be specific modules to partition, which module needs to load which module, to achieve on-demand loading, and eliminate redundant code, reduce code Volume.
In summary, Gulp is a flow-based automation build tool, but does not include the modular function, if it is to be used, it is necessary to introduce external files, such as require.js, and Webpack is the Automation module packaging tools, itself is modular, and also has the function of compression and merging. The two are different in their focus, and I think that using them together will improve code quality and code Optimization.
------------------------------------------------------------------------------
Very uncomfortable, In fact I do not know the two good that bad, and personal use habits, and, do not know the right to write, please criticize, I am a small white ...
"simple understanding" of the difference between Gulp and Webpack