I\'m trying to build my angular project with the angular-cli in a MINGW64 docker box on a Windows 7 Pro machine.
In git bash, the command I am using is:
Set the MSYS2_ARG_CONV_EXCL
environment variable to disable path mangling
export MSYS2_ARG_CONV_EXCL=--base-href=
or alternatively set it at the beginning of the command
MSYS2_ARG_CONV_EXCL=--base-href= ng build --base-href="/mypath/"
Path conversion can be selectively disabled. MSYS2 reads an environment variable called MSYS2_ARG_CONV_EXCL. This is a ; delimited string each part of which is compared against the front part of each argument and if a match is found, that conversion is skipped. An example of a value for MSYS2_ARG_CONV_EXCL that would inhibit path transformations of the 3 cases above is /switch;/sdcard;--root=.
(source: https://github.com/msys2/msys2/wiki/Porting)