search

Home  >  Q&A  >  body text

What is the difference between webpack1 and webpack2?

Which one is better? What are the advantages?

天蓬老师天蓬老师2721 days ago904

reply all(3)I'll reply

  • PHP中文网

    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

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-06-19 09:09:46

    Supplementary link


    Migrate from webpack v1 to webpack v2

    reply
    0
  • 黄舟

    黄舟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.

    reply
    0
  • Cancelreply