Why use WebPack?

后端 未结 3 1264
栀梦
栀梦 2021-01-14 10:51

I\'ve spent a couple days getting Webpack up and running and just got a test going. However I found that the bundle.js file that came out of webpack was doing a lot of unnec

3条回答
  •  -上瘾入骨i
    2021-01-14 11:20

    I agree that Webpack adds tons of cruft that you might not even need. It also has this crazy config file that borders on pure insanity.

    For simplicity's sake, you can just load your module files with script tags, and toss Webpack out the window! (only in modern browsers (Edge16+, FF60+, Chrome61+,Safari11+)).

    
    
                                     
                  
提交回复
热议问题