Skip to content
PluginStats

add-asset-webpack-plugin weekly downloads statistics

By sindresorhus (6 listings) · npm · Webpack plugins

Dynamically add an asset to the Webpack graph

View on npm Fresh · Oct 18, 2026

add-asset-webpack-plugin has 1,076 recorded weekly downloads on npm, a decrease of 52.2% over the past 30 days, ranking #1429 of 2,322 tracked listings.

Weekly downloads
1,076
Official API · Oct 18, 2026
7-day growth
-30.3%
-467 weekly downloads
30-day growth
-52.2%
-1.2K weekly downloads
90-day growth
-56.0%
-1.4K weekly downloads
Rank
#1429
Among tracked npm listings

About add-asset-webpack-plugin

add-asset-webpack-plugin

Dynamically add an asset to the Webpack graph

Install

npm install add-asset-webpack-plugin

Usage

import AddAssetPlugin from 'add-asset-webpack-plugin';

export default {
	// …
	plugins: [
		new AddAssetPlugin('file.js', `
			console.log('This is a dynamically created file');
		`)
	]
};

API

AddAssetPlugin(filePath, source)
filePath

Type: string

Relative file path for the asset.

source

Type: string | (compilation => string | Promise<string>)

Asset source or a function that returns the asset source.

If a function, it will receive the compilation instance.

FAQ

Can I import the dynamically created files?

No. This plugin creates assets in the output directory, not importable modules. For virtual modules that can be imported, use webpack-virtual-modules instead.

Related

Description from the npm listing.

  • webpack-plugin
  • webpack
  • add
  • generate
  • create
  • make
  • asset
  • file

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

add-asset-webpack-plugin weekly downloads on npm, last 90 days: 1,076 weekly downloads as of Oct 18, 2026, -56.0% over 90 days.add-asset-webpack-pluginWeekly downloads on npm · Last 90 days1,076downloads / week-56.0% over 90 days05001K1.5K2K2.5K3K3.5KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
add-asset-webpack-plugin weekly downloads on npm, last 90 days: 1,076 weekly downloads as of Oct 18, 2026, -56.0% over 90 days.

7/30/90-day growth

add-asset-webpack-plugin weekly downloads growth on npm: -30.3% over 7 days, -52.2% over 30 days, -56.0% over 90 days.add-asset-webpack-pluginWeekly downloads growth on npm1,076downloads / week now7-day growth-467 weekly downloads-30.3%30-day growth-1,177 weekly downloads-52.2%90-day growth-1,371 weekly downloads-56.0%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
add-asset-webpack-plugin weekly downloads growth on npm: -30.3% over 7 days, -52.2% over 30 days, -56.0% over 90 days.

Ranking history

add-asset-webpack-plugin npm ranking history: currently #1429 (by weekly downloads).add-asset-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#1429current rank#1400#1405#1410#1415#1420#1425#1430#1435Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
add-asset-webpack-plugin npm ranking history: currently #1429 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 72, #12 (overall #1,432)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins251 listings · 13 pages · page 3, #13 (overall #53)
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 (122)
Recent weekly downloads observations for add-asset-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
1,076+156
920-218
1,138+77
1,061-319
1,380-231
1,6110
1,611+68
1,543-87
1,630+21
1,609-144
1,753-80
1,833-2
1,835-215
2,050—

Similar npm Webpack plugins plugins

All 20 add-asset-webpack-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/add-asset-webpack-plugin. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.