filename-replace-webpack-plugin weekly downloads statistics
By jaysding · npm · Webpack plugins
Rename the dist files generated by the Webpack build.
filename-replace-webpack-plugin has 8 recorded weekly downloads on npm, a decrease of 78.4% over the past 30 days, ranking #1974 of 2,256 tracked listings.
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:
webpack.config.js
Plugin Options
Options can be an object or an array of objects: Object, Array\
If options is an array of objects, multiple matching rules can change multiple file names at the same time
| Name | Type | Default | Description |
| from | {String/RegExp} | undefind | The 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} | undefind | When 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} | false | True 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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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 (121)Similar npm Webpack plugins plugins
All 20 filename-replace-webpack-plugin alternativesData 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 Oct 19, 2026. See the methodology.