title: Opening non-default browser with lite-server in angular2 quick start guide
body: <p>Having followed the TypeScript version of the <a href="https://angular.io/docs/ts/latest/quickstart.html">Angular 2 Quick Start guide</a>, I was wondering if it is possible, and if so how to configure the lite-server to launch a browser other than the default.</p>
  
  <p>It seems lite-server will take command line args, served to it via <code>yargs.argv</code>.  And it seems <code>yargs</code> will attempt to parse command line args based on fairly common standards (i.e. If a token begins with a <code>--</code>, it represents an argument name, otherwise an argument value) to obtain <code>argv</code>.  lite-server will attempt to use the <code>open</code> property that it gets from <code>argv</code>, which is ultimately what launches the browser via [one of the of the node packages that launches processes]. node-open? xdg -open? Not sure, not really as important to me right now as long as my assumption (based on looking at several of these process launchers) is correct, that they all optionally take an argument defining the process to launch.  If omitted, the default browser would be used since the file type to open is html, which is what happens.</p>
  
  <p>If all that is correct, or at least the gist  of it, then it seems I just need to specify <code>--open chrome</code>, for example (assuming chrome is in my <code>PATH</code> - working on a win machine btw), at the end of the <code>lite</code> command defined in <code>package.json</code>.</p>
  
  <p>So something like...</p>
  
  <pre><code>"scripts": {
      "tsc": "tsc",
      "tsc:w": "tsc -w",
      "lite": "lite-server",
      "lite:c": "lite-server --open chrome",
      "lite:f": "lite-server --open firefox ",
      "start": "concurrent \"npm run tsc:w\" \"npm run lite\" "
  },
  </code></pre>
  
  <p>I apologize if this seems inane, but I won't be at a computer where I can test this for a few days, and I need to know if I have the answer and can stop researching this :). Thanks!</p>