content: import 'babel-core/polyfill';
  import React from 'react';
  import { render } from 'react-dom';
  import { Provider } from 'react-redux';
  import { Router, browserHistory } from 'react-router';
  import useScroll from 'scroll-behavior/lib/useStandardScroll';
  
  import configureStore from 'commons/redux/store';
  import configureRoutes from 'routes';
  import reducer from 'redux/reducers';
  
  import { initGa } from 'commons/utils/gaUtil';
  
  const store = configureStore(reducer, window.__INITIAL_STATE__);
  const history = useScroll(() => browserHistory)();
  // const history = browserHistory;
  
  if (module.hot) {
    // Enable Webpack hot module replacement for reducers
    module.hot.accept('./redux/reducers', () => {
      const nextRootReducer = require('./redux/reducers');
      store.replaceReducer(nextRootReducer);
    });
  }
  
  require('commons/utils/i18n').init(store);
  require('commons/utils/storeUtil').init(store);
  
  const routes = configureRoutes(store);
  
  initGa(store, history);
  
  render(
    <Provider store={store}>
      <Router history={history}>
        {routes}
      </Router>
    </Provider>,
    document.getElementById('root')
  );
  