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基本配置? #84

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

webpack基本配置? #84

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

Comments

@GGXXMM
Copy link
Owner

GGXXMM commented Jan 12, 2021

webpack基本配置

  • entry
    打包入口,webpack执行构建的第一步,是从entry开始,可抽象成输入。
  • output
    打包的出口,告诉webpack在哪里输出它所创建的bundles,以及如何命名这些输出文件,默认输出目录为./dist
  • loader
    模块转换器,loader用于对模块的源代码进行转换。
  • plugins
    扩展插件,在webpack构建流程中,插件是一个具有apply属性的JavaScript对象。apply属性会被webpack compiler对象可在整个编译生命周期访问。
  • mode(webpack4.x新增的)
    模式,参数值可为development production
@GGXXMM GGXXMM added the webpack webpack knowledge label Dec 6, 2021
@GGXXMM GGXXMM changed the title webpack基本配置?构建过程? webpack基本配置? Apr 11, 2023
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