title: Issues with getting started with webpack 4
body: <p>I am following the tutorial exactly as given <a href="https://webpack.js.org/guides/getting-started/" rel="noreferrer">here</a> . But I am amazed that the docs seems outdated. e.g</p>
  
  <p><code>npx webpack src/index.js dist/bundle.js</code> fails with:</p>
  
  <blockquote>
    <p>The CLI moved into a separate package: webpack-cli. Please install
    'webpack-cli' in addition to webpack itself to use the CLI.
    -> When using npm: npm install webpack-cli -D
    -> When using yarn: yarn add webpack-cli -D</p>
  </blockquote>
  
  <p>If I install webpack-cli and try again I see this error:</p>
  
  <blockquote>
    <p>Hash: af9bc06fd641eb0ffd1e Version: webpack 4.0.0 Time: 3865ms Built
    at: 2018-2-26 05:10:45  1 asset Entrypoint main = main.js    <a href="https://webpack.js.org/guides/getting-started/" rel="noreferrer">1</a>
    (webpack)/buildin/module.js 519 bytes {0} [built]    <a href="https://gist.github.com/gricard/e8057f7de1029f9036a990af95c62ba8" rel="noreferrer">2</a>
    (webpack)/buildin/global.js 509 bytes {0} [built]    [3]
    ./src/index.js 212 bytes {0} [built]    [4] multi ./src/index.js
    dist/bundle.js 40 bytes {0} [built]
        + 1 hidden module</p>
    
    <p>WARNING in configuration The 'mode' option has not been set. Set
    'mode' option to 'development' or 'production' to enable defaults for
    this environment. </p>
    
    <p>ERROR in multi ./src/index.js dist/bundle.js Module not found: Error:
    Can't resolve 'dist/bundle.js' in '/var/app/webpack_demo'  @ multi
    ./src/index.js dist/bundle.js</p>
  </blockquote>
  
  <p>I hope I am not doing something crazy, given the popularity of webpack the documentation should reflect the actual behavior. Let me know if I am 
  doing something wrong.</p>
  
  <h1>Edit</h1>
  
  <p>A details description of upgrade to <a href="https://gist.github.com/gricard/e8057f7de1029f9036a990af95c62ba8" rel="noreferrer">webpack 4</a>,that might be helpful </p>