Skip to content

Commit 258bc7c

Browse files
AlanKeen Yee Liau
authored andcommitted
fix(@angular-devkit/build-angular): only show production warning when having either styles on scripts optimization turn on
Fixes #13415
1 parent fbbef68 commit 258bc7c

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/dev-server

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/dev-server/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class DevServerBuilder implements Builder<DevServerBuilderOptions> {
128128
});
129129
}
130130

131-
if (browserOptions.optimization) {
131+
if (browserOptions.optimization.scripts || browserOptions.optimization.styles) {
132132
this.context.logger.error(tags.stripIndents`
133133
****************************************************************************************
134134
This is a simple server for use in testing or debugging Angular applications locally.

0 commit comments

Comments
 (0)