Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么不适用webpack呢 #50

Closed
1923998238 opened this issue Apr 5, 2021 · 1 comment
Closed

为什么不适用webpack呢 #50

1923998238 opened this issue Apr 5, 2021 · 1 comment

Comments

@1923998238
Copy link

为什么不适用webpack而使用rollup呢?

@ci010
Copy link
Owner

ci010 commented Apr 7, 2021

因为 vite 是基于 rollup 的,最后 build 也是用 rollup build 的。

当然因为 electron 分成 main 和 renderer,你如果想用 webpack 来 build main 也可以(renderer 依旧是 rollup,因为 vite 设计如此)。只不过加上 webpack 之后,你的 dependencies 会更乱……因为你现在有2个独立的 build 系统……

@ci010 ci010 pinned this issue Apr 7, 2021
@ci010 ci010 closed this as completed Apr 7, 2021
Repository owner locked and limited conversation to collaborators Apr 7, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants