当前位置:网站首页>The difference between bundle, chunk and module
The difference between bundle, chunk and module
2022-07-05 04:34:00 【Mediocre °】
Concept
bundle
bundle
Generated by many different modules , Contains the final version of the source file that has been loaded and compiled
chunk
chunk
It is mainly used internally to manage the bundling process . The output is generated by bundle
from chunk
form , There are several types entry
child
etc. . Usually ,chunk
Direct and bundle
Corresponding , But some configurations do not produce a one-to-one relationship , for example MiniCssExtractPlugin
Can be obtained from chunk
Pull out css
file , Generate... Separately bundle
. Generate chunk
There are three ways ,entry
、 Dynamic loading 、splitChunks
Extract common code
Module
module
Is a discrete function block , Compared with the complete program, it provides a smaller contact surface . It's usually module
Provides abstraction and encapsulation boundaries , Make every module in the application have a clear purpose
summary
The above are the official concepts given by the official website , I have to say, officially , Here we briefly summarize the general differences .module
In fact, it is a file or passed within a file import
It can be regarded as a module
, That is to say, any file that can be imported and exported is a module
and bundle
And chunk
The relationship between , Is roughly chunk
yes webpack
Terms that depend on bundling during packaging .bundle
It can be understood as right chunk
compile / The final output after processing such as compression and packaging .
边栏推荐
- CUDA Programming atomic operation atomicadd reports error err:msb3721, return code 1
- Web开发人员应该养成的10个编程习惯
- CSDN正文自动生成目录
- Neural network and deep learning Chapter 1: introduction reading questions
- Key review route of probability theory and mathematical statistics examination
- [untitled]
- NetSetMan pro (IP fast switching tool) official Chinese version v5.1.0 | computer IP switching software download
- Interview related high-frequency algorithm test site 3
- English topic assignment (26)
- 直播预告 | 容器服务 ACK 弹性预测最佳实践
猜你喜欢
[PCL self study: feature9] global aligned spatial distribution (GASD) descriptor (continuously updated)
[thingsboard] how to replace the homepage logo
Decryption function calculates "task state and lifecycle management" of asynchronous task capability
Uncover the seven quirky brain circuits necessary for technology leaders
What are the building energy-saving software
A solution to the problem that variables cannot change dynamically when debugging in keil5
防护电路中的元器件
Discussion on the dimension of confrontation subspace
Advanced length of redis -- deletion strategy, master-slave replication, sentinel mode
MacBook安装postgreSQL+postgis
随机推荐
SPI read / write flash principle + complete code
自动语音识别(ASR)研究综述
How should programmers learn mathematics
Aperçu en direct | Services de conteneurs ACK flexible Prediction Best Practices
Qt蓝牙:搜索蓝牙设备的类——QBluetoothDeviceDiscoveryAgent
直播預告 | 容器服務 ACK 彈性預測最佳實踐
介绍汉明距离及计算示例
托管式服务网络:云原生时代的应用体系架构进化
Bit operation skills
How to remove installed elpa package
Practice | mobile end practice
Key review route of probability theory and mathematical statistics examination
Uncover the seven quirky brain circuits necessary for technology leaders
Rk3399 platform development series explanation (network debugging) 7.29 summary of network performance tools
可观测|时序数据降采样在Prometheus实践复盘
Leetcode hot topic Hot 100 day 33: "subset"
How to carry out "small step reconstruction"?
Realize the attention function of the article in the applet
直播预告 | 容器服务 ACK 弹性预测最佳实践
Neural network and deep learning Chapter 1: introduction reading questions