-
Notifications
You must be signed in to change notification settings - Fork 12k
ng e2e's serve param does not working #10741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
A little cleaner of a fix, you can use a browserTarget in your build options of the new project |
The solutions mentioned above seem to work. For the sake of completeness: Add a new project like this in
Run with Or: add a configuration to the existing e2e project like so:
Run with |
I have a different issue related:
OK, after reading #10699 (comment), it should be
|
Closing as resolved based on the answers above. |
If running from windows cmd, use |
Why not just re-implement the feature? We're hacking around something that should be easy, if not the default. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
ng e2e --serve=false
Observed behavior
cli will serve the app on port 4200 as default and ignoring the serve param.
Desired behavior
should not serve the app when serve is false.
Mention any other details that might be useful (optional)
I suspect that the issue is caused by
angular.json
config after upgrade my app from 5.2 to 6.0. The e2e project section is shown below:Since the e2e's architect has its option
devServerTarget
pointing tomy-app:serve
, it looks like e2e does not pick up theserve
param and thus will use devServerTarget regardless.The workaround I found is to add a new project section copying all content of the e2e project and remove devServerTarget option, then run ng e2e referencing the new project.
The text was updated successfully, but these errors were encountered: