-
Notifications
You must be signed in to change notification settings - Fork 12k
How to change default --base-href #3010
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
#2727 seems to be implementing this, can you confirm? |
@filipesilva Yes! #2727 is implementing this issue. Can I anyhow contribute writing the e2e test? I'm pretty new to github and have not jet worked with globally installed npm library as local branch. Can I simply check out the branch and rund angular-cli from there, add the e2e test and push to the origin? |
@manuelfink you should be able to simply check out the branch, |
Cross-posting into a still-open issue, from #2727 Please correct me if I'm wrong but it seems like #3285 (which superseded #2727) still doesn't solve the problem described here. All I want is to have my " I tried adding After even more trial and error I discovered that the " This is using the newest versions of Angular-CLI, Angular and TypeScript. Am I doing something wrong here or has anyone else come across similar issues before? I'm just about ready to tear my hair out! It doesn't help that the documentation for both of these options ( |
@mischkl when you build you can specify an output-dir, if this was also possible with serve then I guess you would be able to achieve it like:
What do you think about providing and faking that @filipesilva ? If we had that, then we could also serve localised URLs like: https://medium.com/@intellix/production-ready-angular-cli-v1-0-0-with-i18n-and-localised-urls-1f3cf16cc204 |
Hi @intellix, |
Now that #2727 implements the deployUrl option for ng serve, I guess this issue can be closed. :) Also just a note: for anyone wanting to set a "default" base-href (as mentioned in the title of this issue), that's essentially the same as setting it directly in the index.html. Not really documented because the first thought is to look in the .angular-cli.json, but there it is, perfectly logical when you think about it. :) |
Thanks for the heads up @mischkl, closing 👍 |
Hi guys thanks for the valuable info here. |
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. |
Is it possible to change default --base-href for ng serve and build processes?
I do have a node backend which will later host my angular 2 applications. The app is only accessible for logged in user. My node server supplies the following routes:
Thus I'd like simulate the same behavior while developing the app.
#1080 is pretty similar, however it only works for builds. Thus I'd like to catch up with @JavierFuentes idea. @filipesilva for me it totally makes sense in this context to also develop the app not hosted within the root but within /app/ instead.
The text was updated successfully, but these errors were encountered: