You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2.4 KiB
2.4 KiB
Migration Guide
1.x to 2.x
- The plugin no longer requires any explicit configuration. By default it will pick up all license types.
- The plugin no longer writes warnings/errors directly to console and instead reports warnings/errors to webpack.
- The
modulesDirectoriesoption defaults to null and requires full paths if specified. WhenmodulesDirectoriesis null, third-party modules may be picked up from any directory. - The following options have been removed:
buildRoot- The plugin can work reliably without this option having to be specified now. You can remove it from your configuration.suppressErrors- Use thestatsoption on the plugin config instead to turn off warnings/errors.pattern- Use the newlicenseInclusionTestoption instead.outputTemplate- Use the newrenderLicensesoption instead.includePackagesWithoutLicense- Use the newlicenseInclusionTestoption instead.unacceptablePattern- Use the newunacceptableLicenseTestoption instead.abortOnUnacceptableLicense- The plugin will send an error to webpack whenever an unacceptable license is found. Use the newhandleUnacceptableLicenseoption if you want to do something in addition to that.bannerTemplate- Use the newrenderBanneroption instead.includedChunks- Use the newchunkIncludeExcludeTestoption instead.excludedChunks- Use the newchunkIncludeExcludeTestoption instead.additionalPackages- Use the newadditionalChunkModulesoradditionalModulesoption instead.
- Check the documentation for information on how to use the new options.
0.6.x to 1.x
- Change
require('license-webpack-plugin')torequire('license-webpack-plugin').LicenseWebpackPlugin. - Change
includeUndefinedin the plugin options toincludePackagesWithoutLicense. - The following options have been removed:
addVersion- Use the newoutputTemplateoption to configure an ejs template to be used for writing the output.addLicenseText- Use the newoutputTemplateoption to configure an ejs template to be used for writing the output.addUrl- Use the newoutputTemplateoption to configure an ejs template to be used for writing the output.filename- The plugin outputs an individual file per chunk now and is configured by theoutputFilenameoption. Check theREADME.mdfile to see how it works.