babel-minify-webpack-plugin weekly downloads statistics
By webpack-contrib (7 listings) · npm · Webpack plugins
babel-minify plugin for webpack
babel-minify-webpack-plugin has 10,963 recorded weekly downloads on npm, an increase of 8.5% over the past 30 days, ranking #1225 of 3,247 tracked listings.
About babel-minify-webpack-plugin
npm install babel-minify-webpack-plugin --save-dev
<h2 align="center">Usage</h2>
// webpack.config.js
const MinifyPlugin = require("babel-minify-webpack-plugin");
module.exports = {
entry: //...,
output: //...,
plugins: [
new MinifyPlugin(minifyOpts, pluginOpts)
]
}
<h2 align="center">Options</h2>
minifyOpts
minifyOpts are passed on to babel-preset-minify. You can find a list of all available options in the package directory.
Default: {}
pluginOpts
test: Test to match files against. Default:/\.js($|\?)/iinclude: Files toinclude. Default:undefinedexclude: Files toexclude. Default:undefinedcomments: Preserve Comments. Default:/^\**!|@preserve|@license|@cc_on/, falsy value to remove all comments. Accepts function, object with property test (regex), and values.sourceMap: Configure a sourcemap style. Default: webpackConfig.devtoolparserOpts: Configure babel with special parser options.babel: Pass in a custombabel-coreinstead. Default:require("babel-core")minifyPreset: Pass in a custombabel-minifypreset instead. Default:require("babel-preset-minify")
You can also use babel-loader for webpack and include minify as a preset and should be much faster than using this - as babel-minify will operate on smaller file sizes. But then, why does this plugin exist at all? -
- A webpack loader operates on single files and the minify preset as a webpack loader is going to consider each file to be executed directly in the browser global scope (by default) and will not optimize some things in the toplevel scope. To enable optimizations to take place in the top level scope of the file, use
mangle: { topLevel: true }in minifyOptions. - When you exclude
node_modulesfrom being run through the babel-loader, babel-minify optimizations are not applied to the excluded files as it doesn't pass through the minifier. - When you use the babel-loader with webpack, the code generated by webpack for the module system doesn't go through the loader and is not optimized by babel-minify.
- A webpack plugin can operate on the entire chunk/bundle output and can optimize the whole bundle and you can see some differences in minified output. But this will be a lot slower as the file size is usually really huge. So there is another idea where we can apply some optimizations as a part of the loader and some optimizations in a plugin.
Description from the npm listing.
- babel
- babel-minify
- minify
- webpack
- webpack-plugin
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 (170)Similar npm Webpack plugins plugins
All 20 babel-minify-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/babel-minify-webpack-plugin. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.