Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

license-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

license-webpack-plugin

Outputs licenses from 3rd party libraries to a file

  • 2.3.17
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is license-webpack-plugin?

The license-webpack-plugin is a plugin for Webpack that helps you to manage and automate the process of handling license information for the packages included in your bundle. It can generate a license file, include license texts in your bundle, and filter packages based on their licenses.

What are license-webpack-plugin's main functionalities?

Generate a license file

This feature allows you to generate a single file that contains all the license information for the packages included in your webpack bundle. The 'outputFilename' option specifies the name of the file to be created.

new LicenseWebpackPlugin({
  outputFilename: 'licenses.txt'
})

Include license texts in the bundle

With this feature, you can include the license texts directly in your webpack bundle. Setting 'perChunkOutput' to false will include all licenses in the main bundle file instead of separate chunk files.

new LicenseWebpackPlugin({
  perChunkOutput: false
})

Filter packages by license type

This feature allows you to filter which packages to include based on their license type. In this example, only packages with the 'MIT' license will be included.

new LicenseWebpackPlugin({
  licenseInclusionTest: (licenseType) => licenseType === 'MIT'
})

Other packages similar to license-webpack-plugin

Keywords

FAQs

Package last updated on 11 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc