Skip to content
PluginStats

replace-asset-name-webpack-plugin weekly downloads statistics

By sibiraj-s (4 listings) · npm · Webpack plugins

Replace asset name in a file

View on npm Fresh · Dec 6, 2026

replace-asset-name-webpack-plugin has 186 recorded weekly downloads on npm, an increase of 102% over the past 30 days, ranking #2516 of 3,247 tracked listings.

Weekly downloads
186
Official API · Dec 5, 2026
7-day growth
+28.3%
+41 weekly downloads
30-day growth
+102%
+94 weekly downloads
90-day growth
+130%
+105 weekly downloads
Rank
#2516
▼ 68 in 7 days

About replace-asset-name-webpack-plugin

replace-asset-name-webpack-plugin

Replace blocks with asset name matching given regex or string

Tests License Version Node Version Webpack Version

Getting Started

Installation
npm i -D replace-asset-name-webpack-plugin
# or
yarn add replace-asset-name-webpack-plugin --dev
Usage
// webpack.config.js
const ReplaceAssetNamePlugin = require('replace-asset-name-webpack-plugin');

module.exports = {
  mode: 'production',
  entry: {
    main: 'src/index.js',
    app: 'src/app.js',
  },
  output: {
    filename: 'js/[name]-[contenthash].js',
  },
  plugins: [
    new ReplaceAssetNamePlugin({
      asset: /main(-.*)?.js$/,
      rules: [
        {
          search: '{APP_ENTRY_REF}',
          replace: /app(-.*)?.js$/,
        },
      ],
    }),
  ],
};

This will replace the occurrence of {APP_ENTRY_REF} in main.js with the output chunk name of the app entry.

In development mode. If you use contenthash for testing. Make sure to enable realContentHash so that chunk names will be updated after replace. This is enabled by default in production mode.

Options
asset

Include all assets that pass test assertion

Type: String|RegExp|Array<String|RegExp>.

rules

Array of rules to search and replace assets

new ReplaceAssetNamePlugin({
  asset: /main(-.*)?.js$/,
  rules: [
    {
      search: '{APP_ENTRY_REF}',
      replace: /app(-.*)?.js$/,
    },
  ],
});

search

Type: String|RegExp

Replace the occurrence of given string or regex with the asset name

replace

Type: String|RegExp.

Name of the asset to be replaced with the matching search term

Related Plugins

Description from the npm listing.

  • webpack
  • plugin
  • webpack-plugin
  • replace-webpack-plugin
  • replace-asset

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

replace-asset-name-webpack-plugin weekly downloads on npm, last 90 days: 186 weekly downloads as of Dec 5, 2026, +130% over 90 days.replace-asset-name-webpack-pluginWeekly downloads on npm · Last 90 days186downloads / week+130% over 90 days050100150200Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
replace-asset-name-webpack-plugin weekly downloads on npm, last 90 days: 186 weekly downloads as of Dec 5, 2026, +130% over 90 days.

7/30/90-day growth

replace-asset-name-webpack-plugin weekly downloads growth on npm: +28.3% over 7 days, +102% over 30 days, +130% over 90 days.replace-asset-name-webpack-pluginWeekly downloads growth on npm186downloads / week now7-day growth+41 weekly downloads+28.3%30-day growth+94 weekly downloads+102%90-day growth+105 weekly downloads+130%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
replace-asset-name-webpack-plugin weekly downloads growth on npm: +28.3% over 7 days, +102% over 30 days, +130% over 90 days.

Ranking history

replace-asset-name-webpack-plugin npm ranking history: currently #2516 (by weekly downloads).replace-asset-name-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#2516current rank#1600#1800#2000#2200#2400#2600Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
replace-asset-name-webpack-plugin npm ranking history: currently #2516 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 126, #16 (overall #2,516)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 8, #1 (overall #141)
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 replace-asset-name-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
186-5
191+10
181+10
171+18
153+2
151+11
140-5
145+2
143-4
147+14
133-11
144+20
124+2
122—

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/replace-asset-name-webpack-plugin. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.