title: PhpStorm minify multiple JavaScript files in 1
body: <p>I wanted to minify my JavaScript files using PhpStorm's file watcher but I can't get it working the way I would like it to.</p>
  
  <p>I have installed uglify-js. In the file watcher I tried the following:</p>
  
  <blockquote>
    <p>Arguments: <code>$FileName$ -o $FileDir$.min.js --style compressed</code><br>
    Output paths to refresh: <code>$FileDir$.min.js</code></p>
  </blockquote>
  
  <p>The problem is that there is just 1 file being minified each time not all in one.</p>
  
  <p>The other problem is that I would like to output a sourcemap but I don't know how to do this nor where to put it (arguments or output paths).</p>
  
  <p>I hope someone could help me with these settings.</p>