Gathering detailed insights and metrics for babel-minify-webpack-plugin
Gathering detailed insights and metrics for babel-minify-webpack-plugin
Gathering detailed insights and metrics for babel-minify-webpack-plugin
Gathering detailed insights and metrics for babel-minify-webpack-plugin
npm install babel-minify-webpack-plugin
49.3
Supply Chain
49.6
Quality
71.1
Maintenance
25
Vulnerability
95.6
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
491 Stars
111 Commits
44 Forks
23 Watching
3 Branches
31 Contributors
Updated on 12 Oct 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-5.9%
3,307
Compared to previous day
Last week
16.8%
21,128
Compared to previous week
Last month
20.8%
86,609
Compared to previous month
Last year
-8.6%
835,336
Compared to previous year
3
1
DEPREACTED due to lack of support/bug fixes/ new features, project abandoned, please migrate on https://github.com/webpack-contrib/terser-webpack-plugin
1npm install babel-minify-webpack-plugin --save-dev
1// webpack.config.js 2const MinifyPlugin = require("babel-minify-webpack-plugin"); 3module.exports = { 4 entry: //..., 5 output: //..., 6 plugins: [ 7 new MinifyPlugin(minifyOpts, pluginOpts) 8 ] 9}
minifyOpts
are passed on to babel-preset-minify. You can find a list of all available options in the package directory.
Default: {}
test
: Test to match files against. Default: /\.js($|\?)/i
include
: Files to include
. Default: undefined
exclude
: Files to exclude
. Default: undefined
comments
: 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 custom babel-core
instead. Default: require("babel-core")
minifyPreset
: Pass in a custom babel-minify
preset 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? -
mangle: { topLevel: true }
in minifyOptions.node_modules
from being run through the babel-loader, babel-minify optimizations are not applied to the excluded files as it doesn't pass through the minifier.
Boopathi Rajaa |
Juho Vepsäläinen |
Joshua Wiens |
Kees Kluskens |
Sean Larkin |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 16/30 approved changesets -- score normalized to 5
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
95 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More