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几个基础概念 #12

Open
mbaxszy7 opened this issue Jun 20, 2020 · 0 comments
Open

webpack几个基础概念 #12

mbaxszy7 opened this issue Jun 20, 2020 · 0 comments
Labels

Comments

@mbaxszy7
Copy link
Owner

mbaxszy7 commented Jun 20, 2020

整理一下webpack几个基础概念

什么是bundle, chunck, module

  • bundel: 打包后的文件
  • chunck: 在进行模块依赖分析,代码分割出来的代码块
  • module: 开发中的单个模块

什么是loader 什么是plugin

  • loader: 用来告知webpack如何转化处理某一些类型的文件,并且引入到打包出的文件中
  • plugin:是用来自定义webpack打包过程的方式, 是一个含有apply方法的对象,通过这个方法可以参与到整个webpack打包的各个流程
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant