js-dxtools/webpack-validator

A bug when "loader: ExtractTextPlugin.extract({...})"

Closed this issue · 3 comments

This is my config:

module: {
    loaders: [
      {
        test: /\.css$/,
        loader: ExtractTextPlugin.extract({
          fallback: 'style-loader',
          use: 'css-loader'
        })
      },
    ]
  },

When I use validator(config) :

{
        "test": {},
        "loader" [1]: [
          {
            "loader": "/Users/hugo/dev/personal/template-we
bpack-babel/node_modules/extract-text-webpack-plugin/loader
.js",
            "options": {
              "omit": 1,
              "remove": true
            }
          },
          {
            "loader": "style-loader"
          },
          {
            "loader": "css-loader"
          }
        ]
      }

......

[1] "loader" must be a string

If I use config without validator, successful.

I think this is a bug of webpack-validator, isn't it?

What version of webpack are you using?

"webpack": "^2.2.1"

Ah, yes, webpack 2 has built-in support for validation so this tool does not officially support webpack 2.