text: import { createStore, applyMiddleware } from 'redux';
  import rootReducer from './reducers/index';
  import thunk from 'redux-thunk'
  
  export default function configureStore(initialState={}) {
    /* dev redux logger setting */
    let log = [];
    if(
      window.location &&
      window.location.host &&
      window.location.host.indexOf('localhost') !== -1){
        const { logger } = require("redux-logger");
        log.push(logger);
    }
    /* dev redux logger setting */
  
    return createStore(
      rootReducer,
      initialState,
      applyMiddleware(thunk, ...log)
    );
  }