Angular-cli build with base-href also return programs folder when using git bash

后端 未结 4 1153
南方客
南方客 2020-12-31 07:32

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:



        
4条回答
  •  耶瑟儿~
    2020-12-31 08:23

    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)

提交回复
热议问题