title: Is there a way to watch two Laravel Mix Webpack config files at the same time for any changes?
body: <p>Using Laravel Mix, is it possible to watch two Webpack config files with one command so that changes to any of the underlying files instantly cause the necessary files to be compiled?</p>
  
  <p>Specifically, I have the following two Webpack config files I'm using with Laravel Mix: <code>webpack.css.mix.js</code> and <code>webpack.js.mix.js</code></p>
  
  <p>I then have the following commands in the <code>scripts</code> object of <code>package.json</code>:</p>
  
  <pre><code>"development-css": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --watch --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js --env.mixfile=webpack.css.mix",
  "development-js": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --watch --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js --env.mixfile=webpack.js.mix",
  "watch": "npm run development-css -- --watch &amp; npm run development-js -- --watch",
  </code></pre>
  
  <p>The <code>npm run watch</code> command only watches the first command specified though. In the above case, any changes I save to the Sass files will build, but no changes to any JS/Vue files. If I switch the two commands in the <code>watch</code> command, then the JS will build on change/save, but not the Sass.</p>
  
  <p>Does anyone have any ideas how to structure the <code>npm run watch</code> command (or the underlying commands), so that I can watch both the Sass and JS at the same time?</p>
  
  <p>Also, for what it's worth, due to a bug in Laravel Mix at the moment, I had to separate the Sass and JS compilation into two separate files. This bug is documented here: <a href="https://github.com/JeffreyWay/laravel-mix/issues/1914" rel="nofollow noreferrer">https://github.com/JeffreyWay/laravel-mix/issues/1914</a></p>
  
  <p>The discussion does solve the bug, but not how to combine the two commands into one watch command. Thank you.</p>