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? #83

Open
GGXXMM opened this issue Jan 12, 2021 · 0 comments
Open

为什么需要构建工具?为什么选择webpack? #83

GGXXMM opened this issue Jan 12, 2021 · 0 comments
Labels
webpack webpack knowledge

Comments

@GGXXMM
Copy link
Owner

GGXXMM commented Jan 12, 2021

一、为什么需要构建工具?

  • 转换es6语法
    es6语法浏览器兼容情况
    image

  • 转换JSX、vue/react/Angular三大框架的指令

  • CSS前缀补全/预处理器转换CSS

  • 代码压缩混淆

  • 图片压缩

二、为什么选择webpack?

image

  • 社区生态丰富,官方维护的插件很多
  • 配置灵活和插件化扩展
  • 官方更新迭代快,基本1年发布一个版本
@GGXXMM GGXXMM added the webpack webpack knowledge label Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
webpack webpack knowledge
Projects
None yet
Development

No branches or pull requests

1 participant