\hypertarget{md_sfcode_node_modules_license_webpack_plugin_MIGRATION_autotoc_md16094}{}\doxysection{1.\+x to 2.\+x}\label{md_sfcode_node_modules_license_webpack_plugin_MIGRATION_autotoc_md16094}

\begin{DoxyItemize}
\item The plugin no longer requires any explicit configuration. By default it will pick up all license types.
\item The plugin no longer writes warnings/errors directly to console and instead reports warnings/errors to webpack.
\item The {\ttfamily modules\+Directories} option defaults to null and requires full paths if specified. When {\ttfamily modules\+Directories} is null, third-\/party modules may be picked up from any directory.
\item The following options have been removed\+:
\begin{DoxyItemize}
\item {\ttfamily build\+Root} -\/ The plugin can work reliably without this option having to be specified now. You can remove it from your configuration.
\item {\ttfamily suppress\+Errors} -\/ Use the {\ttfamily stats} option on the plugin config instead to turn off warnings/errors.
\item {\ttfamily pattern} -\/ Use the new {\ttfamily license\+Inclusion\+Test} option instead.
\item {\ttfamily output\+Template} -\/ Use the new {\ttfamily render\+Licenses} option instead.
\item {\ttfamily include\+Packages\+Without\+License} -\/ Use the new {\ttfamily license\+Inclusion\+Test} option instead.
\item {\ttfamily unacceptable\+Pattern} -\/ Use the new {\ttfamily unacceptable\+License\+Test} option instead.
\item {\ttfamily abort\+On\+Unacceptable\+License} -\/ The plugin will send an error to webpack whenever an unacceptable license is found. Use the new {\ttfamily handle\+Unacceptable\+License} option if you want to do something in addition to that.
\item {\ttfamily banner\+Template} -\/ Use the new {\ttfamily render\+Banner} option instead.
\item {\ttfamily included\+Chunks} -\/ Use the new {\ttfamily chunk\+Include\+Exclude\+Test} option instead.
\item {\ttfamily excluded\+Chunks} -\/ Use the new {\ttfamily chunk\+Include\+Exclude\+Test} option instead.
\item {\ttfamily additional\+Packages} -\/ Use the new {\ttfamily additional\+Chunk\+Modules} or {\ttfamily additional\+Modules} option instead.
\end{DoxyItemize}
\item Check the \mbox{\hyperlink{md_sfcode_node_modules_license_webpack_plugin_DOCUMENTATION}{documentation}} for information on how to use the new options.
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_license_webpack_plugin_MIGRATION_autotoc_md16095}{}\doxysection{0.\+6.\+x to 1.\+x}\label{md_sfcode_node_modules_license_webpack_plugin_MIGRATION_autotoc_md16095}

\begin{DoxyItemize}
\item Change `require(\textquotesingle{}license-\/webpack-\/plugin'){\ttfamily to}require(\textquotesingle{}license-\/webpack-\/plugin\textquotesingle{}).License\+Webpack\+Plugin{\ttfamily .}
\item {\ttfamily Change}include\+Undefined{\ttfamily in the plugin options to}include\+Packages\+Without\+License\`{}.
\item The following options have been removed\+:
\begin{DoxyItemize}
\item {\ttfamily add\+Version} -\/ Use the new {\ttfamily output\+Template} option to configure an ejs template to be used for writing the output.
\item {\ttfamily add\+License\+Text} -\/ Use the new {\ttfamily output\+Template} option to configure an ejs template to be used for writing the output.
\item {\ttfamily add\+Url} -\/ Use the new {\ttfamily output\+Template} option to configure an ejs template to be used for writing the output.
\item {\ttfamily filename} -\/ The plugin outputs an individual file per chunk now and is configured by the {\ttfamily output\+Filename} option. Check the {\ttfamily README.\+md} file to see how it works. 
\end{DoxyItemize}
\end{DoxyItemize}