-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng build --base-href #5606
Comments
You're using |
Two slashes reproduces "//my-folder" as is. And same result: "c:\path\to\my-folder". |
I'm not convinced that
So if |
See this for when conversions occur: You can tell git bash to avoid the conversion for the -bh parameter by setting the MSYS2_ARG_CONV_EXCL environment variable while calling ng like this: Note that to use the exclusion you must use -bh parameter with an =, not space since MSYS2_ARG_CONV_EXCL will think the value after the space is a different parameter. |
For new version angular-cli, you should use the following command line: |
Per @tolgabalci link
I use
If doing multiple levels: |
This was the best solution for us. It allows us to create a bash script that accepts any base-href as a command-line argument and builds the project. Note this method does not appear to work with yarn though! We use yarn for everything else in our project, but for this we had to use "npm run build" rather than "yarn build" -- I almost disregarded this method because I couldn't get it to work with yarn. Hopefully this helps someone :) |
I uses ng build --prod --base-href=//my-base-href and worked to me. |
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. |
I am using "@angular/cli": "1.0.0-rc.2",
when I do ng build --base-href /myapp/
it generates me an index.html with C:/Users/myname/.webclipse/git-bash/myapp/
Ex :
expected is :
Please advice.
The text was updated successfully, but these errors were encountered: