当前位置:网站首页>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 .
边栏推荐
- 解密函数计算异步任务能力之「任务的状态及生命周期管理」
- File upload bypass summary (upload labs 21 customs clearance tutorial attached)
- CSDN body auto generate directory
- Wenet: E2E speech recognition tool for industrial implementation
- web资源部署后navigator获取不到mediaDevices实例的解决方案(navigator.mediaDevices为undefined)
- This is an age of uncertainty
- Power management bus (pmbus)
- MySQL: view with subquery in the from clause limit
- QT Bluetooth: a class for searching Bluetooth devices -- qbluetooth devicediscoveryagent
- 【thingsboard】替换首页logo的方法
猜你喜欢
QT Bluetooth: a class for searching Bluetooth devices -- qbluetooth devicediscoveryagent
[AI bulletin 20220211] the hard core up owner has built a lidar and detailed AI accelerator
【虛幻引擎UE】實現UE5像素流部署僅需六步操作少走彎路!(4.26和4.27原理類似)
MacBook安装postgreSQL+postgis
49 pictures and 26 questions explain in detail what is WiFi?
蛇形矩阵
直播预告 | 容器服务 ACK 弹性预测最佳实践
CUDA Programming atomic operation atomicadd reports error err:msb3721, return code 1
The remainder operation is a hash function
Scheduling system of kubernetes cluster
随机推荐
TPG x AIDU|AI领军人才招募计划进行中!
【虚幻引擎UE】实现UE5像素流部署仅需六步操作少走弯路!(4.26和4.27原理类似)
直播预告 | 容器服务 ACK 弹性预测最佳实践
[phantom engine UE] package error appears! Solutions to findpin errors
Here comes the Lantern Festival red envelope!
Serpentine matrix
Introduction to RT thread kernel (4) -- clock management
【虚幻引擎UE】运行和启动的区别,常见问题分析
2022-2028 global and Chinese video coding and transcoding Market Research Report
Key review route of probability theory and mathematical statistics examination
User behavior collection platform
Is there a sudden failure on the line? How to make emergency diagnosis, troubleshooting and recovery
托管式服务网络:云原生时代的应用体系架构进化
学习MVVM笔记(一)
CUDA Programming atomic operation atomicadd reports error err:msb3721, return code 1
Basic analysis of IIC SPI protocol
WeNet:面向工业落地的E2E语音识别工具
蛇形矩阵
Fonction (sujette aux erreurs)
2022-2028 global and Chinese virtual data storage Market Research Report