当前位置:网站首页>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 .
边栏推荐
- [crampon programming] lintcode decoding Encyclopedia - 872 termination process
- 【虛幻引擎UE】實現UE5像素流部署僅需六步操作少走彎路!(4.26和4.27原理類似)
- Burpsuite grabs app packets
- History of web page requests
- CSDN body auto generate directory
- How to carry out "small step reconstruction"?
- Stage experience
- Sword finger offer 04 Search in two-dimensional array
- PHP读取ini文件并修改内容写入
- 2022-2028 global and Chinese equipment as a Service Market Research Report
猜你喜欢
直播預告 | 容器服務 ACK 彈性預測最佳實踐
Components in protective circuit
托管式服务网络:云原生时代的应用体系架构进化
[PCL self study: feature9] global aligned spatial distribution (GASD) descriptor (continuously updated)
windows下Redis-cluster集群搭建
File upload bypass summary (upload labs 21 customs clearance tutorial attached)
[illusory engine UE] method to realize close-range rotation of operating objects under fuzzy background and pit recording
可观测|时序数据降采样在Prometheus实践复盘
直播预告 | 容器服务 ACK 弹性预测最佳实践
揭秘技术 Leader 必备的七大清奇脑回路
随机推荐
Network security - record web vulnerability fixes
Construction d'un Cluster redis sous Windows
Observable time series data downsampling practice in Prometheus
English topic assignment (27)
Wenet: E2E speech recognition tool for industrial implementation
Neural network and deep learning Chapter 1: introduction reading questions
Introduction to RT thread kernel (4) -- clock management
How to remove installed elpa package
Qt蓝牙:搜索蓝牙设备的类——QBluetoothDeviceDiscoveryAgent
Neural networks and deep learning Chapter 5: convolutional neural networks reading questions
[crampon game] MC tutorial - first day of survival
Data security -- 14 -- Analysis of privacy protection governance
Machine learning decision tree
2022-2028 global and Chinese video coding and transcoding Market Research Report
windows下Redis-cluster集群搭建
Interview related high-frequency algorithm test site 3
函数(易错)
[finebi] the process of making custom maps using finebi
[PCL self study: feature9] global aligned spatial distribution (GASD) descriptor (continuously updated)
All in one 1413: determine base