Sample use the broswerTarget option of ng serve?

Discussão em 'Angular' iniciado por Wayne Kaskie, Setembro 10, 2024.

  1. Wayne Kaskie

    Wayne Kaskie Guest

    I would like to automatically open Chrome when building my Angular apps. However, I can't use -o because my default browser is Safari (I don't wish to change the default browser).

    It seems that --browserTarget is all that I need, but when I run something like:

    ng serve --browserTarget=Chrome


    The CLI throws an error:

    Schema validation failed with the following errors:
    Data path ".browserTarget" should match patter ".+:.+:).+)?"


    I can't seem to find any documentation or samples on how to use this option to rectify that issue.

    Thanks in advance, Wayne

    Continue reading...

Compartilhe esta Página