tchick
tchick

Reputation: 417

How to set options to ng (Angular) in IntelliJ Run Configuration?

I have a IntelliJ Run Configuration to start up my Angular App. Command is set to "run" and Scripts to "start", when starting it, it will start "ng serve". What do Command and Script mean? And how can I pass an option to ng? I want to start it on a differnt port, like "ng serve --port 4201".

Upvotes: 0

Views: 1911

Answers (1)

tchick
tchick

Reputation: 417

You can set the port by setting the Arguments field to -- --port 4201. See the link in Oksanas comment for details.

Upvotes: 5

Related Questions