Skip to content
PluginStats

chunk-restriction-plugin weekly downloads statistics

By prate3k · npm · Webpack plugins

Chunk restriction plugin for webpack

View on npm Outdated · Oct 20, 2026

chunk-restriction-plugin has 17 recorded weekly downloads on npm, an increase of 54.5% over the past 30 days, ranking #3029 of 3,247 tracked listings.

Weekly downloads
17
Official API · Dec 5, 2026
7-day growth
+183%
+11 weekly downloads
30-day growth
+54.5%
+6 weekly downloads
90-day growth
-10.5%
-2 weekly downloads
Rank
#3029
▲ 59 in 7 days

About chunk-restriction-plugin

<div align="center"> <a href="https://github.com/webpack/webpack"> <img width="200" height="200" src="https://webpack.js.org/assets/icon-square-big.svg"> </a> <h1>Chunk Restriction Plugin</h1> </div>

npm node deps size

chunk-restriction-plugin

Help you monitor your chunk size.

Getting Started

To begin, you'll need to install chunk-restriction-plugin:

npm install --save-dev chunk-restriction-plugin

Then add the plugin to your webpack config. For example:

webpack.config.js

const ChunkRestrictionPlugin = require('chunk-restriction-plugin');

module.exports = {
	plugins: [
		new ChunkRestrictionPlugin({
			restrictions: [
				{
					chunkName: 'vendor',
					jsSize: '200 KiB',
					logType: 'warning'
				},
				{
					chunkName: 'app',
					jsSize: '150 KiB',
					cssSize: '100 KiB',
					logType: 'error'
				}
			]
		})
	]
};

Options

NameTypeRequiredDefaultDescription
restrictions{Array}trueAllows to define restriction on chunk's assets (js & css only)
defaultLogType{String}falsewarningAllows to define default treatment for all the restrictions specified.
logSafeChunks{Boolean}falsefalseAllows to log information about chunks who are within the specified restriction.
safeSizeDifference{String}falseAllows to define difference between asset's size and its restriction, to be considered safe size. If specified, warns about chunks who does not meet this value.
restrictions

Type: Array Default: null

Allows to define restrictions on multiple chunks based on its chunk name.

Restriction object properties:

PropertyTypeDescription
chunkName{String}Allows to define chunk name
jsSize{String}Allows to define restriction on its JS asset. <br/> (in Bytes/KiB/MiB)
cssSize{String}Allows to define restriction on its CSS asset. <br/> (in Bytes/KiB/MiB)
logType{String}Allows to define severity of this restriction, overrides defaultLogType value. <br/>Possible values : "error" or "warning"
jsSize :

Used to set the limit on the chunk's js asset size. <br/>

Possible units:

  • Byte/Bytes
  • Kb/KiB
  • Mb,MiB
cssSize :

Used to set the limit on the chunk's css asset size.<br/>

Possible units:

  • Byte/Bytes
  • Kb/KiB
  • Mb,MiB
logType :

Allows to specify severity of this restriction. Overrides defaultLogType. Its default value gets set on the basis of defaultLogType option value.

Possible values :

  • "error"
  • "warning"
defaultLogType

Type: String Default: warning

Allows to define default treatment (either treat it as warning or error) for all the restrictions specified.

Possible values :

  • "error"
  • "warning"
logSafeChunks

Type: Boolean Default: false

Enable logging information about all the chunks who are within the defined restriction.

safeSizeDifference

Type: String Default: ""

Allows to define difference between asset's size and its restriction, which will be considered as safe size for all the chunks. If specified, warns about chunks who does not satisfy this condition. Useful when you want to get information about chunk's asset, whose size is about to meet its restriction.

Possible units:

  • Byte/Bytes
  • Kb/KiB
  • Mb,MiB

License

MIT

Description from the npm listing.

  • chunk-restriction
  • chunk-restriction-plugin
  • restriction-plugin
  • webpack
  • webpack chunk
  • webpack-plugin

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

chunk-restriction-plugin weekly downloads on npm, last 90 days: 17 weekly downloads as of Dec 5, 2026, -10.5% over 90 days.chunk-restriction-pluginWeekly downloads on npm · Last 90 days17downloads / week-10.5% over 90 days010203040506070Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
chunk-restriction-plugin weekly downloads on npm, last 90 days: 17 weekly downloads as of Dec 5, 2026, -10.5% over 90 days.

7/30/90-day growth

chunk-restriction-plugin weekly downloads growth on npm: +183% over 7 days, +54.5% over 30 days, -10.5% over 90 days.chunk-restriction-pluginWeekly downloads growth on npm17downloads / week now7-day growth+11 weekly downloads+183%30-day growth+6 weekly downloads+54.5%90-day growth-2 weekly downloads-10.5%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
chunk-restriction-plugin weekly downloads growth on npm: +183% over 7 days, +54.5% over 30 days, -10.5% over 90 days.

Ranking history

chunk-restriction-plugin npm ranking history: currently #3029 (by weekly downloads).chunk-restriction-pluginnpm ranking · by weekly downloads · Last 90 days#3029current rank#1800#2000#2200#2400#2600#2800#3000#3200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 20 observations · Updated Dec 5, 2026pluginstats.com
chunk-restriction-plugin npm ranking history: currently #3029 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 152, #11 (overall #3,031)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 16, #12 (overall #312)
Webpack plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for chunk-restriction-plugin
Date (UTC)Weekly downloadsChange vs. previous
170
17-1
180
18+11
7+2
50
5-1
60
6-3
9-5
14+2
12-2
140
14—

Similar npm Webpack plugins plugins

All 20 chunk-restriction-plugin alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/chunk-restriction-plugin. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.