Gathering detailed insights and metrics for license-info-webpack-plugin
Gathering detailed insights and metrics for license-info-webpack-plugin
Gathering detailed insights and metrics for license-info-webpack-plugin
Gathering detailed insights and metrics for license-info-webpack-plugin
Making a list of package's LICENSE information for webpack
npm install license-info-webpack-plugin
Typescript
Module System
TypeScript (86.3%)
JavaScript (13.7%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
21 Stars
505 Commits
1 Forks
2 Watchers
14 Branches
3 Contributors
Updated on May 01, 2023
Latest Version
3.0.0
Package Id
license-info-webpack-plugin@3.0.0
Unpacked Size
19.71 kB
Size
5.16 kB
File Count
9
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
license-info-webpack-plugin
is a webpack plugin for making a list of package's LICENSE information, inspired by licensify.
1$ npm install --save-dev license-info-webpack-plugin
1$ yarn add --dev license-info-webpack-plugin
If you use webpack < 4.2
that has dependency on uglifyjs-webpack-plugin < 1.2.4
, you need to set optimization
to set uglifyOptions
.
1const path = require('path'); 2const LicenseInfoWebpackPlugin = require('license-info-webpack-plugin').default; 3const UglifyJsPlugin = require("uglifyjs-webpack-plugin"); 4 5module.exports = { 6 mode: 'production', 7 entry: './src/js/index.js', 8 output: { 9 path: path.join(__dirname, 'dist/js'), 10 filename: '[name].js' 11 }, 12 plugins: [ 13 new LicenseInfoWebpackPlugin({ 14 glob: '{LICENSE,license,License}*' 15 }) 16 ] 17};
1const path = require('path'); 2const LicenseInfoWebpackPlugin = require('license-info-webpack-plugin').default; 3const UglifyJsPlugin = require("uglifyjs-webpack-plugin"); 4 5module.exports = { 6 entry: './src/js/index.js', 7 output: { 8 path: path.join(__dirname, 'dist/js'), 9 filename: '[name].js' 10 }, 11 plugins: [ 12 new LicenseInfoWebpackPlugin({ 13 glob: '{LICENSE,license,License}*' 14 }), 15 new UglifyJsPlugin({ 16 uglifyOptions: { 17 output: { 18 comments: /^\**!|@preserve|@license|@cc_on/ 19 } 20 } 21 }) 22 ] 23};
If you use uglifyjs-webpack-plugin@^1.2.4
or webpack
has dependency on uglifyjs-webpack-plugin@^1.2.4
, you don't need to set uglifyOptions
for preserve license comments.
Related: https://github.com/webpack-contrib/uglifyjs-webpack-plugin/pull/250
If you use uglifyjs-webpack-plugin@~1.1
, you need to set uglifyOptions
for preserve license comments.
Related: https://github.com/webpack-contrib/uglifyjs-webpack-plugin/pull/174
license-info-webpack-plugin
needs webpack v3.0 or above
glob
'{LICENSE,license,License}*'
outputType
'banner'
or 'html'
'banner'
: Append comment to top of bundled code'html'
: Generate html (e.g. license.[name].html
)'banner'
includeLicenseFile
true
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
69 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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