4.0.0 • Published 4 months ago

generate-license-file-webpack-plugin v4.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

generate-license-file-webpack-plugin

Webpack plugin to generate a text file asset containing all of the licenses for your production third-party dependencies.

Based on the npm package generate-licence-file.
Currently supports Webpack v5.

Usage

To use the default configuration, construct the plugin in your webpack plugins array:

// webpack.config.js
const { LicenseFilePlugin } = require("generate-license-file-webpack-plugin");

module.exports = {
  plugins: [new LicenseFilePlugin()],
};

The plugin can be configured using the following options. Below shows the default values:

// webpack.config.js
const { LicenseFilePlugin } = require("generate-license-file-webpack-plugin");

module.exports = {
  plugins: [
    new LicenseFilePlugin({
      outputFileName: "third-party-licenses.txt",
      outputFolder: "./", // Relative to your build output directory
      pathToPackageJson: "./package.json",
      isDev: false, // When true, uses placeholder content to reduce compilation time
      lineEnding: undefined, // Can be 'windows' or 'posix'. If omitted, the system default will be used
    }),
  ],
};

Building the plugin yourself

npm install
npm run build

License

generate-license-file-webpack-plugin is licensed under the ISC License.

3.8.0

4 months ago

4.0.0

4 months ago

3.8.1

4 months ago

3.7.0

6 months ago

3.6.0

8 months ago

3.5.1

11 months ago

3.5.0

1 year ago

3.4.0

1 year ago

3.3.0

1 year ago

3.2.0

1 year ago

3.0.1

2 years ago

3.0.0-beta.3

2 years ago

3.0.0-beta.2

2 years ago

3.0.0

2 years ago

3.0.0-beta.4

2 years ago

1.0.1

4 years ago

1.0.0

4 years ago