title: How can I use ES6 in webpack.config.js?
body: <p>How to use ES6 in webpack.config ?
  Like this repo 
  <a href="https://github.com/kriasoft/react-starter-kit">https://github.com/kriasoft/react-starter-kit</a>
  does ?</p>
  
  <p>For instance:</p>
  
  <p>using this</p>
  
  
  
  <pre class="lang-javascript prettyprint-override"><code>import webpack from 'webpack';
  </code></pre>
  
  <p>instead of</p>
  
  <pre class="lang-javascript prettyprint-override"><code>var webpack = require('webpack');
  </code></pre>
  
  <p>It is quite a curiosity rather than a need.</p>