var qs = require('qs');

function combineLoaders(loaders) {
  return loaders.map(function(loaderEntry) {
    var query = qs.stringify(loaderEntry.query, { arrayFormat: 'brackets' });
    if (query) {
      query = '?' + query;
    }
    return loaderEntry.loader + query;
  }).join('!');
}

module.exports = combineLoaders;

var qs = require('qs');

function combineLoaders(loaders) {
  return loaders.map(function(loaderEntry) {
    var query = qs.stringify(loaderEntry.query, { arrayFormat: 'brackets', encode: false });
    if (query) {
      query = '?' + query;
    }
    return loaderEntry.loader + query;
  }).join('!');
}

module.exports = combineLoaders;

Disable encoding loader string due to error in Babel 6
Disable encoding loader string due to error in Babel 6
