-
Notifications
You must be signed in to change notification settings - Fork 0
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中plugin和loader的区别 #21
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
loader
:加载器,在module.rules
中配置,用于对模块源码的转换,loader
可以使你在import
或"加载"模块时预处理文件,包括对其他语言、图像、css等类型的处理plugin
:插件,用于扩展webpack的功能,目的在于解决loader
无法实现的其他事,比如打包优化、代码压缩、模块提取等The text was updated successfully, but these errors were encountered: