Skip to content

Commit

Permalink
fix(@angular/cli): explicitly disable warning overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Lyding authored and hansl committed May 3, 2017
1 parent 6015a03 commit f73a9e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@angular/cli/custom-typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ interface IWebpackDevServerConfigurationOptions {
https?: boolean;
key?: string;
cert?: string;
overlay?: boolean;
overlay?: boolean | { errors: boolean, warnings: boolean };
}
5 changes: 4 additions & 1 deletion packages/@angular/cli/tasks/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ export default Task.extend({
poll: serveTaskOptions.poll
},
https: serveTaskOptions.ssl,
overlay: serveTaskOptions.target === 'development',
overlay: {
errors: serveTaskOptions.target === 'development',
warnings: false
},
contentBase: false
};

Expand Down

0 comments on commit f73a9e4

Please sign in to comment.