build/css-loader.conf.js
function getQueryObj(query='') {
  const qObj = {};
  const pairs = (query[0] === '?' ? query.substr(1) : query).split('&');
  for (let i = 0, j = pairs.length; i < j; i++) {
    let pair = pairs[i].split('=');
    qObj[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1] || '');
  }
  return qObj;
}
function getQueryObj(query='') {
  const qObj = {};
  const pairs = (query[0] === '?' ? query.substr(1) : query).split('&');
  for (let i = 0, j = pairs.length; i < j; i++) {
    let pair = pairs[i].split('=');
    qObj[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1] || '');
  }
  return qObj;
}
function getQueryObj ( query = '' ) { const qObj = { } ; const pairs = ( query [ 0 ] === '?' ? query . substr ( 1 ) : query ) . split ( '&' ) ; for ( let i = 0 , j = pairs . length ; i < j ; i ++ ) { let pair = pairs [ i ] . split ( '=' ) ; qObj [ decodeURIComponent ( pair [ 0 ] ) ] = decodeURIComponent ( pair [ 1 ] || '' ) ; } return qObj ; }
turn resourceQuery into an object
turn resourceQuery into an object