title: Webpack 2 multiple targets in config file, how to specify target with CLI
body: <p>My webpack config exports an array of config objects. One has a target of <code>web</code> and the other <code>node</code>. I don't want to split this into separate files.</p>
  
  <p>When I use the CLI to build I get both targets building. However, I want to specify which target. In the <a href="https://webpack.js.org/api/cli/#advanced-options" rel="nofollow noreferrer">docs</a> there is a target flag available but it doesn't seem to do anything.</p>
  
  <p>I've tried this as per the docs:</p>
  
  <p><code>webpack --config webpack.config.js --target='node'</code></p>
  
  <p>But I still get both the node and web targets building.</p>