Skip to content

Commit a4a53b8

Browse files
authored
Merge pull request #74 from IgniteUI/dTsvetkov/fix-task-json-command
fix(tasks): update ng serve command in tasks.json
2 parents 9fb55db + 00375f4 commit a4a53b8

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

src/templates/tasks.json.template

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@
77
}
88
],
99
// These tasks can be run from CodeSandbox. Running one will open a log in the app.
10-
"tasks": {
11-
"node node_modules/@angular/cli/bin/ng serve -o --disable-host-check": {
12-
"name": "Start Project",
13-
"command": "node --max_old_space_size=12192 node_modules/@angular/cli/bin/ng serve -o --disable-host-check",
14-
"runAtStart": true
15-
}
10+
"tasks": {
11+
"start": {
12+
"name": "Start Project",
13+
"command": "node --max-old-space-size=4096 node_modules/@angular/cli/bin/ng serve --host 0.0.0.0 --port 4200 --allowed-hosts=all",
14+
"runAtStart": true,
15+
"preview": {
16+
"port": 4200
17+
}
1618
}
17-
}
19+
}
20+
}

0 commit comments

Comments
 (0)