title: How to open browser to localhost through npm scripts
body: <p>I've been trying to figure out how to write a <code>npm script</code> that will culminate with the application being launched in the user's browser without them having to manually open the browser and go to <code>localhost:1234</code>.</p>
  
  <p>Right now my script reads as:</p>
  
  <pre><code>"start": "npm run build &amp;&amp; npm run dev",
  "build": "npm run clean &amp;&amp; npm run mkdir &amp;&amp; npm run build:html &amp;&amp; npm run build:css &amp;&amp; npm run build:js",
  "dev": "webpack-dev-server --inline --hot --content-base build --history-api-fallback",
  </code></pre>
  
  <p>Wanting to add <code>"open": &lt;some code here&gt;,</code></p>
  
  <p>So when someone goes to GitHub and clones or forks off my repository they are given the instructions for how to run the application. I just thought that automating this would be a nice little addition.</p>
  
  <p>Anyone know how this is possible? I'm pretty sure it is and think it has something to do with calling a command in bash. Thanks in advance for the help!</p>