title: Webpack 2: Error: options/query cannot be used with loaders (use options for each array item)
body: <p>I'm trying to add query's for .png/.ttf loading as webpack otherwise gives me warnings about deprecation when compiling otherwise, after upgrading to webpack 2.</p>
  
  <p>Here's my config. How do I add the query's for photos and fonts properly?</p>
  
  <pre><code>const ExtractTextPlugin = require("extract-text-webpack-plugin");
  
  var webpack = require("webpack");
  
  module.exports = {
      entry: {
          dashboard: './js/main.js',
          vendor: ["fixed-data-table","react","react-dom","jquery", "bootstrap", "vis"],
      },
      output: { path: "../public", filename: 'bundle.js' },
  
      plugins: [
          new webpack.optimize.CommonsChunkPlugin({name: "vendor", filename: "static/vendor.bundle.js"}),
          new ExtractTextPlugin("/static/[name].css"),
          new webpack.ProvidePlugin({
              $: "jquery",
              jQuery: "jquery"
          }),
      ],
  
      module: {
          loaders: [
              {
                  test: /.js?$/,
                  loader: 'babel-loader',
                  exclude: /node_modules/,
                  query: {
                      presets: [
                          'es2015', 'react', 'stage-0',
                      ],
  
              }
              },
              {
                  test: /\.css$/,
                  loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: 'css-loader'}),
              },
              {
                  test: /\.(jpe?g|png|gif|svg)$/i,
                  loaders: [
                      'file-loader?hash=sha512&amp;digest=hex&amp;name=~/.local/share/Trash/[hash].[ext]',
                      'image-webpack-loader?bypassOnDebug&amp;optimizationLevel=7&amp;interlaced=false', {
                          loader: 'image-webpack-loader',
                      },
                  ],
                  query: {
                      gifsicle: {
                          interlaced: false,
                      },
                      optipng: {
                          optimizationLevel: 4,
                      },
                      pngquant: {
                          quality: '75-90',
                          speed: 3,
                      },
                  }
  
              },
              {
                  test: /\.(eot|svg|ttf|woff|woff2)$/,
                  loader: 'file-loader?name=~/.local/share/Trash/[name].[ext]'
              }
          ]
      },
  };
  </code></pre>