Skip to content
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 的 loader 和 plugin 的区别 #87

Open
lovelmh13 opened this issue Jun 22, 2021 · 0 comments
Open

webpack 的 loader 和 plugin 的区别 #87

lovelmh13 opened this issue Jun 22, 2021 · 0 comments

Comments

@lovelmh13
Copy link
Owner

loader 功能单一,只是用来转换的

plugin 可以干其他的工作,插入到webpack 的各个流程中,实现各种自定义的设置。不操作文件,而是用过监听 webpack 的事件来执行,比如打包、压缩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant