clementprevot / webpack2-validator

Validates your webpack config with Joi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

does not work with webpack2

netchkin opened this issue · comments

upon entering the following config for webpack@2.2.0:

{
  entry: path.resolve(__dirname, 'src/index.js'),
  output: {
    path: path.resolve(__dirname, outputDir),
    filename: 'frontend.bundle.js'
  },
  target: 'web',
  module: {
    rules: [
      { test: '/.jsx$/', use: 'babel-loader' }
    ]
  }
}

according to the official docs, this should be a valid configuration, yet the validation produces the following output:

[1] "loaders" is required
[2] "rules" is not allowed

This package is not maintened anymore as config validation is natively available in webpack2