# license-webpack-plugin

> Outputs licenses from 3rd party libraries to a file

Latest version **4.0.2** (published 2022-02-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install license-webpack-plugin
pnpm add license-webpack-plugin
yarn add license-webpack-plugin
bun add license-webpack-plugin
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.2 |
| Published | 2022-02-10 |
| First published | 2016-07-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 107.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 171 |
| Author | S K |
| Maintainers | xz64.xyz |
| Keywords | license, plugin, webpack |

## Links

- npm: https://www.npmjs.com/package/license-webpack-plugin
- Repository: https://github.com/xz64/license-webpack-plugin
- Homepage: https://github.com/xz64/license-webpack-plugin#readme
- Issues: https://github.com/xz64/license-webpack-plugin/issues
- npm.io page: https://npm.io/package/license-webpack-plugin

## Dependencies (1)

- [webpack-sources](https://npm.io/package/webpack-sources.md) ^3.0.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 4.0.2 (latest) — 2022-02-10
- 2.0.0-beta.3 (next) — 2018-09-22
- 4.0.1 — 2022-01-27
- 4.0.0 — 2021-11-12
- 3.0.0 — 2021-10-02
- 2.3.21 — 2021-08-20
- 2.3.20 — 2021-07-12
- 2.3.19 — 2021-05-31
- 2.3.18 — 2021-05-08
- 2.3.17 — 2021-04-11
- 2.3.16 — 2021-03-26
- 2.3.15 — 2021-03-04
- 2.3.14 — 2021-02-19
- 2.3.13 — 2021-02-12
- 2.3.12 — 2021-02-12
- … 64 more at https://npm.io/package/license-webpack-plugin/versions

## README

# License Webpack Plugin

[![Build Status](https://api.travis-ci.org/xz64/license-webpack-plugin.svg?branch=master)](https://travis-ci.org/xz64/license-webpack-plugin)

Manage third-party license compliance in your webpack build.

## Installation
`npm install license-webpack-plugin --save-dev`

## Usage

To use the plugin, simply add it to the plugins section in the webpack config.

Example:
```javascript
const LicenseWebpackPlugin = require('license-webpack-plugin').LicenseWebpackPlugin;

module.exports = {
  plugins: [
    new LicenseWebpackPlugin()
  ]
};
```

The default behavior will add a license notice file to each chunk of the webpack build. In addition, it will add a banner indicating the path to the license notice file in any Javascript assets. Third party libraries imported via external tools like SASS `@import` may not appear in the output (since webpack does not process `@import`). If this issue happens, please specify additional modules that the plugin should scan.

To configure the plugin, check the [documentation](DOCUMENTATION.md).

## Build Instructions

```
yarn
yarn build
```

## Migration Guides

Migration guides for breaking changes are documented [here](MIGRATION.md).

## Changelog

The changelog can be found [here](CHANGELOG.md).

## License
[ISC](https://opensource.org/licenses/ISC)

---
_Source: https://npm.io/package/license-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
