What is the difference between webpack1 and webpack2?
天蓬老师
天蓬老师 2017-06-19 09:07:46
0
3
829

Which one is better? What are the advantages?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all (3)
洪涛

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

    伊谢尔伦

    Supplementary link


    Migrate from webpack v1 to webpack v2

      黄舟

      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.

        Latest Downloads
        More>
        Web Effects
        Website Source Code
        Website Materials
        Front End Template
        About us Disclaimer Sitemap
        php.cn:Public welfare online PHP training,Help PHP learners grow quickly!