source: trip-planner-front/node_modules/license-webpack-plugin/MIGRATION.md@ e29cc2e

Last change on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.4 KB
Line 
1# Migration Guide
2
3## 1.x to 2.x
4* The plugin no longer requires any explicit configuration. By default it will pick up all license types.
5* The plugin no longer writes warnings/errors directly to console and instead reports warnings/errors to webpack.
6* The `modulesDirectories` option defaults to null and requires full paths if specified. When `modulesDirectories` is null, third-party modules may be picked up from any directory.
7* The following options have been removed:
8 - `buildRoot` - The plugin can work reliably without this option having to be specified now. You can remove it from your configuration.
9 - `suppressErrors` - Use the `stats` option on the plugin config instead to turn off warnings/errors.
10 - `pattern` - Use the new `licenseInclusionTest` option instead.
11 - `outputTemplate` - Use the new `renderLicenses` option instead.
12 - `includePackagesWithoutLicense` - Use the new `licenseInclusionTest` option instead.
13 - `unacceptablePattern` - Use the new `unacceptableLicenseTest` option instead.
14 - `abortOnUnacceptableLicense` - The plugin will send an error to webpack whenever an unacceptable license is found. Use the new `handleUnacceptableLicense` option if you want to do something in addition to that.
15 - `bannerTemplate` - Use the new `renderBanner` option instead.
16 - `includedChunks` - Use the new `chunkIncludeExcludeTest` option instead.
17 - `excludedChunks` - Use the new `chunkIncludeExcludeTest` option instead.
18 - `additionalPackages` - Use the new `additionalChunkModules` or `additionalModules` option instead.
19* Check the [documentation](DOCUMENTATION.md) for information on how to use the new options.
20
21## 0.6.x to 1.x
22
23* Change `require('license-webpack-plugin')` to `require('license-webpack-plugin').LicenseWebpackPlugin`.
24* Change `includeUndefined` in the plugin options to `includePackagesWithoutLicense`.
25* The following options have been removed:
26 - `addVersion` - Use the new `outputTemplate` option to configure an ejs template to be used for writing the output.
27 - `addLicenseText` - Use the new `outputTemplate` option to configure an ejs template to be used for writing the output.
28 - `addUrl` - Use the new `outputTemplate` option to configure an ejs template to be used for writing the output.
29 - `filename` - The plugin outputs an individual file per chunk now and is configured by the `outputFilename` option. Check the `README.md` file to see how it works.
Note: See TracBrowser for help on using the repository browser.