Which one is better? What are the advantages?
PHP中文网2017-06-19 09:09:46
Use webpack2! In general, there are some differences between webpack1 and webpack2, but they are not very big. Webpack2 adds many new things, such as native support for es6 modules, adding tree-shaking (reducing the packaged volume), and the xieconfig file is different. How to write, etc.
Here are a few links for your reference,
tree-shaking
Upgrade webpack1.x to webpack2.x
黄舟2017-06-19 09:09:46
I guess you are also a novice, otherwise you wouldn’t know how to write such a question! There is nothing to say. If you have a good foundation and strong learning ability, just start with 2. Otherwise, learn 1 first. After all, some of the current tutorials are all for 1. Once you learn, you can 2 Transition.