Skip to content
PluginStats

filename-replace-webpack-plugin weekly downloads statistics

By jaysding · npm · Webpack plugins

Rename the dist files generated by the Webpack build.

View on npm Outdated · Nov 24, 2026

filename-replace-webpack-plugin has 27 recorded weekly downloads on npm, a decrease of 18.2% over the past 30 days, ranking #2932 of 3,247 tracked listings.

Weekly downloads
27
Official API · Dec 5, 2026
7-day growth
-12.9%
-4 weekly downloads
30-day growth
-18.2%
-6 weekly downloads
90-day growth
-71.9%
-69 weekly downloads
Rank
#2932
▼ 228 in 7 days

About filename-replace-webpack-plugin

filename-replace-webpack-plugin

Rename the dist files generated by the Webpack build.

advantages

  • Even if it's not webpack5, you can change the chunk file to any name you want (MiniCssExtractPlugin: what are you looking at me for?).
  • You can customize file paths (including chunk)
  • For the object file to be modified, you can use the exact match with the re, or you can use the string fuzzy match directly

Getting Started

You need to install filename-replace-webpack-plugin:

npm install --save-dev filename-replace-webpack-plugin

webpack.config.js

const FilenameReplaceWebpackPlugin = require('./plugins/filename-replace-webpack-plugin');
module.exports = {
	// ...
	plugins: [
        new FilenameReplaceWebpackPlugin([{
            from: /main.*\.js$/, // matching main.*****.js
            to: 'index.ironman.js', // modified into index.ironman.js
            // clone: true, // the true will keep the original file
            // replace: (filename) => { // The regex function replaces the file name more precisely with the regular expression. The argument is the source file name and the return value is the new name
            //     let reg = /^(.*)main(\.*.*)\.js$/g;
            //     return reg.test(filename) && filename.replace(reg, (match, ...p) => {
            //         return match.replace(p[1], '')
            //     })
            // } // This method removes any characters between 'main' and '.js'
        },{
            from: /main.*\.css$/, // matching main.*****.css
            to: '/css/index.spiderman.css', // modified into index.spiderman.css
        }])
	]
}
⚠️ 'from' must be used with 'to', 'replace' must be used alone, and if they both appear at the same time the replace rule takes precedence

Plugin Options

Options can be an object or an array of objects: Object, Array<Object>

If options is an array of objects, multiple matching rules can change multiple file names at the same time

NameTypeDefaultDescription
from{String/RegExp}undefindThe target file, that needs to be modified will match the packaged file fuzzy matching on the filled string (which means multiple files may be modified) if it is of type RegExp (you can use it to match file suffixes to constrain the file type)
to{String}''The name of the file (path) you want to change to
replace{Function}undefindWhen you need to change the name of a file more precisely, you can use this function, which params is original file name and returns the name of the file you want to change
clone{Boolean}falseTrue will retain the original file, copy a new file from the original file and rename it according 'to' or 'replace'

SomeTimes

When you use code splitting, you might pull out some chunk files, such as packaging an ElementUI component library from business code, which produces JS files and CSS files, If your requirement is to package ElementUI separately and name it 'ElementUI.js' and 'ElementUI.css ', you can use splitChunks.cacheGroups to name the package and the js file you package is 'ElementUI.js'. The CSS file needs to be named mini-css-extract-plugin with the following configuration: chunkFilename: /css/[name].css, but other chunk css files may require the 'contenthash' value. If 'contenthash' is added to chunkFilename option, 'ElementUI.css' will also be added to 'contenthash', This is not what you want, so you can use this plugin to name 'ElementUI.css' separately

Description from the npm listing.

  • rename
  • rename-file
  • webpack-plugin
  • webpack
  • replace-filename

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

filename-replace-webpack-plugin weekly downloads on npm, last 90 days: 27 weekly downloads as of Dec 5, 2026, -71.9% over 90 days.filename-replace-webpack-pluginWeekly downloads on npm · Last 90 days27downloads / week-71.9% over 90 days020406080100Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
filename-replace-webpack-plugin weekly downloads on npm, last 90 days: 27 weekly downloads as of Dec 5, 2026, -71.9% over 90 days.

7/30/90-day growth

filename-replace-webpack-plugin weekly downloads growth on npm: -12.9% over 7 days, -18.2% over 30 days, -71.9% over 90 days.filename-replace-webpack-pluginWeekly downloads growth on npm27downloads / week now7-day growth-4 weekly downloads-12.9%30-day growth-6 weekly downloads-18.2%90-day growth-69 weekly downloads-71.9%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
filename-replace-webpack-plugin weekly downloads growth on npm: -12.9% over 7 days, -18.2% over 30 days, -71.9% over 90 days.

Ranking history

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

Listing placement

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

Listing placement

Webpack plugins349 listings · 18 pages · page 15, #3 (overall #283)
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 filename-replace-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
27-1
280
28+1
27+3
24-2
26-2
28-3
31+1
30-5
350
35-1
36+6
30+6
24—

Similar npm Webpack plugins plugins

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