title: How do I run "npm run watch" on specific address and port? (Laravel mix)
body: <p>How can I run <strong>npm watch</strong> with a specific url and port?</p>
  <p>In my package.json file I have following the line</p>
  <pre><code>&quot;watch&quot;: &quot;mix watch&quot;,
  </code></pre>
  <p>in the scripts section, which works fine with the command <strong>npm run watch</strong> and is accessed via localhost. I would like to access it at <a href="http://dev.myproject:8888" rel="nofollow noreferrer">http://dev.myproject:8888</a> instead of localhost, as I have a number of projects.</p>
  <p>To run <strong>npm start</strong> with a specific local url is can add the following line to the &quot;scripts&quot; section of my projects package.json :</p>
  <pre><code>&quot;start&quot;: &quot;http-server -a dev.myprojectname -p 8888&quot;
  </code></pre>
  <p>(in order to this one must add dev.myprojectname to your &quot;hosts&quot; file, connected to 127.0.0.0)</p>
  <p>How can I specify the same for <strong>npm watch</strong> ?</p>
  <p>I have tried the same under watch ie :</p>
  <pre><code>&quot;watch&quot;: &quot;http-server -a dev.myprojectname -p 8888&quot;
  </code></pre>
  <p>but this is not correct</p>