CARVIEW |
Select Language
HTTP/2 301
date: Sat, 26 Jul 2025 20:11:22 GMT
content-type: text/html
content-length: 162
location: https://webpack.js.org/plugins/limit-chunk-count-plugin/
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
server: cloudflare
x-origin-cache: HIT
access-control-allow-origin: *
expires: Sat, 26 Jul 2025 20:21:22 GMT
cache-control: max-age=600
x-proxy-cache: MISS
x-github-request-id: 8DE4:E3E6D:517F0:5F12B:68853667
accept-ranges: bytes
age: 0
via: 1.1 varnish
x-served-by: cache-maa10240-MAA
x-cache: MISS
x-cache-hits: 0
x-timer: S1753560683.680734,VS0,VE223
vary: Accept-Encoding
x-fastly-request-id: d8fe692fa2bb7d1a36b21518b366e698e274eced
cf-cache-status: DYNAMIC
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=CnD%2ButTeCLV3JUN9FXYbQ8EwH9Z%2FuSrYIKLuEyUllb%2B2VPVYMobcJMrEnq5Y3DnOAgLEcg9u5xkooT1jmXwSfMnL3nBaZH76vPbaOdg%3D"}]}
cf-ray: 96568bb9ff2a3e92-BLR
HTTP/1.1 301 Moved Permanently
Date: Sat, 26 Jul 2025 20:11:22 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Location: https://webpack.js.org/plugins/limit-chunk-count-plugin/
Vary: accept-encoding
Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=k10KPfOHkjI8wCfdPoxGZwWVbnbQsX138HcpXpilDKgjZFt6Wsss%2FxO%2FBiCknosR88E%2BUFRiGWsVlAUtUVMSczZwk17D5RwFZur5RO8%3D"}]}
Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
Server: cloudflare
CF-RAY: 96568bbc1b94b277-BLR
HTTP/2 200
date: Sat, 26 Jul 2025 20:11:23 GMT
content-type: text/html; charset=utf-8
content-length: 13472
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
server: cloudflare
last-modified: Sat, 26 Jul 2025 00:10:36 GMT
access-control-allow-origin: *
etag: W/"68841cfc-17367"
expires: Sat, 26 Jul 2025 20:21:23 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: ED29:37D986:B92C7:DA961:68853669
accept-ranges: bytes
via: 1.1 varnish
age: 0
x-served-by: cache-maa10230-MAA
x-cache: MISS
x-cache-hits: 0
x-timer: S1753560683.940752,VS0,VE247
vary: Accept-Encoding
x-fastly-request-id: 0e1fd5f89436fc2986072f227a0c65a0bf9ec365
cf-cache-status: DYNAMIC
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=Y2Ss1gp8GX0cjAJoQC9CBAYCuVScx49sdIUUM%2FK6BvogrPG1RP3Ps1VllNhvWAL%2F3pgKDzlMWmgnraAyCjfFnAUtixa6uRfXAZlbc9o%3D"}]}
cf-ray: 96568bbc2a353e92-BLR
LimitChunkCountPlugin | webpack
Community
webpack
SplitChunksPlugin
- Defaults
- Configuration
- optimization.splitChunks
- splitChunks.automaticNameDelimiter
- splitChunks.chunks
- splitChunks.maxAsyncRequests
- splitChunks.maxInitialRequests
- splitChunks.defaultSizeTypes
- splitChunks.minChunks
- splitChunks.hidePathInfo
- splitChunks.minSize
- splitChunks.minSizeReduction
- splitChunks.enforceSizeThreshold
- splitChunks.minRemainingSize
- splitChunks.layer
- splitChunks.maxSize
- splitChunks.maxAsyncSize
- splitChunks.maxInitialSize
- splitChunks.name
- splitChunks.usedExports
- splitChunks.cacheGroups
- Examples
webpack contrib
MiniCssExtractPlugin
- Getting Started
- Options
- Examples
- Recommended
- Minimal example
- Named export for CSS Modules
- The publicPath option as function
- Advanced configuration example
- Hot Module Reloading (HMR)
- Minimizing For Production
- Using preloaded or inlined CSS
- Extracting all CSS in a single file
- Extracting CSS based on entry
- Filename Option as function
- Long Term Caching
- Remove Order Warnings
- Multiple Themes
- Media Query Plugin
- Hooks
- Contributing
- License
LimitChunkCountPlugin
While writing your code, you may have already added many code split points to load stuff on demand. After compiling you might notice that some chunks are too small - creating larger HTTP overhead. LimitChunkCountPlugin
can post-process your chunks by merging them.
new webpack.optimize.LimitChunkCountPlugin({
// Options...
});
Options
The following options are supported:
maxChunks
number
Limit the maximum number of chunks using a value greater than or equal to 1
. Using 1
will prevent any additional chunks from being added as the entry/main chunk is also included in the count.
webpack.config.js
const webpack = require('webpack');
module.exports = {
// ...
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 5,
}),
],
};
minChunkSize
Keeping chunk size above the specified limit is no longer a feature of this plugin. Use MinChunkSizePlugin instead.
Usage via CLI
This plugin and it's options can also be invoked via the CLI:
webpack --optimize-max-chunks 15
« Previous
Internal webpack pluginsNext »
MinChunkSizePlugin