Skip to content

Commit b631314

Browse files
committed
fix(@angular-devkit/build-angular): extract licenses only when optimizing
Partially address #12432.
1 parent 0cfbdbc commit b631314

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/browser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function getBrowserConfig(wco: WebpackConfigOptions) {
5656
}));
5757
}
5858

59-
if (buildOptions.extractLicenses) {
59+
if (buildOptions.optimization && buildOptions.extractLicenses) {
6060
extraPlugins.push(new LicenseWebpackPlugin({
6161
stats: {
6262
warnings: false,

0 commit comments

Comments
 (0)