Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): extract licenses only when optimi…
Browse files Browse the repository at this point in the history
…zing

Partially address #12432.
  • Loading branch information
filipesilva committed Oct 10, 2018
1 parent 0cfbdbc commit b631314
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function getBrowserConfig(wco: WebpackConfigOptions) {
}));
}

if (buildOptions.extractLicenses) {
if (buildOptions.optimization && buildOptions.extractLicenses) {
extraPlugins.push(new LicenseWebpackPlugin({
stats: {
warnings: false,
Expand Down

0 comments on commit b631314

Please sign in to comment.