title: "Modules" is not allowed Error
body: <p>Webpack 2 comes with the new resolve setting and when I try to modify the setting in config, as follows, webpackValidator throws an error saying </p>
  
  <blockquote>
    <p><strong>"Modules" is not allowed"</strong></p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/REKht.png" alt="Error in Terminal"></p>
  
  <pre><code>const config = webpackValidator({
  
      context: resolve('src'),
      entry: './app.js',
      output: {
        filename: 'bundle.js',
        path: resolve('dist'),
        publicPath: '/dist/',
        pathinfo: ifNotProd(),
      },
      devtool: ifProd('source-map', 'eval'),
      module: {
        loaders: [
          {
            test: /\.js$/,
            loaders: ['babel'],
            exclude: /node_modules/
          }
        ]
      },
      resolve: {
        extensions: ['.js'],
        modules: [
          resolve(__dirname, 'src'),
          resolve(__dirname, 'node_modules')
        ]
      },
      plugins: [
        new DashboardPlugin()
      ]
    })
  </code></pre>