Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
webpack 和 parcel 的优缺点是什么
网页包:
https://webpack.js.org
包裹:
https://parceljs.org
如果您不想担心配置所有内容并且您的需求是常见的需求,您应该直接使用包裹。Parcel 提供了适合大多数场景并适用于所有人的默认值(用于 babel-preset-env、post-css、html 等)。您不必担心配置任何内容。
另一方面,如果你需要更多的定制,你应该使用 webpack。请记住,您必须设置所需的所有内容,明确设置这些内容。