Outputs licenses from 3rd party libraries to a file
npm install license-webpack-plugin
Manage third-party license compliance in your webpack build.
npm install license-webpack-plugin --save-devTo 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.
```
yarn
yarn build
Migration guides for breaking changes are documented here.
The changelog can be found here.