Skip to content

Commit b6b8acc

Browse files
admosityclydin
authored andcommitted
feat(@angular/cli): load deployUrl and baseHref from app config for ng serve
1 parent b5bac36 commit b6b8acc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@angular/cli/tasks/serve.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ export default Task.extend({
7373
}
7474

7575
const serveDefaults = {
76-
// default deployUrl to '' on serve to prevent the default from .angular-cli.json
77-
deployUrl: ''
76+
deployUrl: appConfig.deployUrl || '',
77+
baseHref: appConfig.baseHref || '',
7878
};
7979

8080
serveTaskOptions = Object.assign({}, serveDefaults, serveTaskOptions);

0 commit comments

Comments
 (0)