title: Output an executable file with webpack
body: <p>I'm currently writing a node CLI tool and using webpack to bundle all of my assets. The entry point for this application is the js file where I actually parse <code>process.argv</code> and run a command (For reference, I'm using <a href="https://github.com/tj/commander.js" rel="noreferrer">tj/commander</a>). This way, once the bundling is complete, I can enter <code>./&lt;outputFile&gt;</code> and it will run my application. The entry file looks like this:</p>
  
  <pre><code>import cli from './cli';
  
  cli.parse(process.argv);
  
  // If nothing was supplied
  if (!process.argv.slice(2).length) {
    cli.outputHelp();
  }
  </code></pre>
  
  <p>The bundling works fine but I can't get webpack to output the file as an executable. Once I run <code>chmod +x &lt;outputFile&gt;</code>, everything works perfectly. Is there a way that I can tell webpack what permissions to grant an output file?</p>