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 · Dec 6, 2026

add-asset-webpack-plugin has 2,731 recorded weekly downloads on npm, an increase of 24.9% over the past 30 days, ranking #1774 of 3,247 tracked listings.

Weekly downloads
2,731
Official API · Dec 5, 2026
7-day growth
+104%
+1.4K weekly downloads
30-day growth
+24.9%
+544 weekly downloads
90-day growth
+35.0%
+708 weekly downloads
Rank
#1774
▲ 130 in 7 days

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: 2,731 weekly downloads as of Dec 5, 2026, +35.0% over 90 days.add-asset-webpack-pluginWeekly downloads on npm · Last 90 days2,731downloads / week+35.0% over 90 days05001K1.5K2K2.5K3KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
add-asset-webpack-plugin weekly downloads on npm, last 90 days: 2,731 weekly downloads as of Dec 5, 2026, +35.0% over 90 days.

7/30/90-day growth

add-asset-webpack-plugin weekly downloads growth on npm: +104% over 7 days, +24.9% over 30 days, +35.0% over 90 days.add-asset-webpack-pluginWeekly downloads growth on npm2,731downloads / week now7-day growth+1,390 weekly downloads+104%30-day growth+544 weekly downloads+24.9%90-day growth+708 weekly downloads+35.0%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
add-asset-webpack-plugin weekly downloads growth on npm: +104% over 7 days, +24.9% over 30 days, +35.0% over 90 days.

Ranking history

add-asset-webpack-plugin npm ranking history: currently #1774 (by weekly downloads).add-asset-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#1774current rank#1300#1400#1500#1600#1700#1800#1900#2000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
add-asset-webpack-plugin npm ranking history: currently #1774 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 89, #14 (overall #1,774)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 3, #12 (overall #52)
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 add-asset-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
2,731+232
2,499+406
2,093+642
1,451+181
1,270+31
1,239-83
1,322-19
1,341-71
1,412-56
1,468-75
1,543-19
1,562+73
1,489-5
1,494—

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 Dec 6, 2026. See the methodology.