dev-zuo 技术日常
Github

webpack与parcel区别

这篇文章发布于 2020/06/29,归类于
标签:
webpack与parcel区别parcel与webpack区别webpack parcel difference

webpack与parcel都是打包工具,webpack功能强大,但比较重,配置项比较多,有点繁琐。而parcel就是为了解决配置项太多这个问题的,它默认集成了通用的常规功能,零配置,如果自定义较多,还是推荐webpack

If you don't want to worry about configuring everything and your needs are common needs, you should go directly with parcel. Parcel provides defaults (for babel-preset-env, post-css, html, etc) that fits most scenarios and works for everybody. You don't have to worry about configuring anything.

From the other hand, if you need a more customization, you should go with webpack. Keep in mind that you will have to setup everything that you need, explicitly set those things.

参考:Webpack vs Parcel - Stack Overflow