File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 614
614
"description" : " Show a warning when the TypeScript version is incompatible" ,
615
615
"type" : " boolean" ,
616
616
"default" : true
617
+ },
618
+ "servePathDefault" : {
619
+ "description" : " Show a warning when deploy-url/base-href use unsupported serve path values." ,
620
+ "type" : " boolean" ,
621
+ "default" : true
617
622
}
618
623
}
619
624
}
Original file line number Diff line number Diff line change @@ -193,7 +193,8 @@ export default Task.extend({
193
193
if ( ! servePath && servePath !== '' ) {
194
194
const defaultServePath =
195
195
findDefaultServePath ( serveTaskOptions . baseHref , serveTaskOptions . deployUrl ) ;
196
- if ( defaultServePath == null ) {
196
+ const showWarning = CliConfig . fromProject ( ) . get ( 'warnings.servePathDefault' ) ;
197
+ if ( defaultServePath == null && showWarning ) {
197
198
ui . writeLine ( oneLine `
198
199
${ chalk . yellow ( 'WARNING' ) } --deploy-url and/or --base-href contain
199
200
unsupported values for ng serve. Default serve path of '/' used.
You can’t perform that action at this time.
0 commit comments