old_contents: // This is the entry point for our client-side logic
  // The server-side has a similar configuration in `src/server/middleware/render.js`
  import 'isomorphic-fetch';
  import '../core/polyfills';
  import '../core/logger';
  import './assets/styles/index.scss';
  import {hydrate} from 'inferno-hydrate';
  import createBrowserHistory from 'history/createBrowserHistory';
  import {App} from './components/App';
  
  // We render our react app into this element
  const root = document.getElementById('root');
  const history = createBrowserHistory();
  
  history.listen((location) => {
    window.ga('send', 'pageview', location.pathname);
  });
  
  /**
   * Render our component according to our routes
   */
  hydrate(<App history={history}/>, root);
  
  // cache all assets if browser supports serviceworker
  // if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
  //   const sw = navigator.serviceWorker;
  //
  //   sw.register('/offline.js').then(function() {
  //     console.debug('ServiceWorker: registered');
  //   }).catch(function(err) {
  //     console.error('ServiceWorker:', err);
  //   });
  //
  //   /*sw.register('/sw.js').then(function() {
  //       console.debug('CDN Worker: registered')
  //   }).catch(function(err) {
  //       console.error('ServiceWorker:', err)
  //   })*/
  //
  //   sw.ready.then(function() {
  //     console.debug('Worker: ready');
  //   });
  // }
  
  if (module.hot) {
    module.hot.accept();
  }
  
new_contents: // This is the entry point for our client-side logic
  // The server-side has a similar configuration in `src/server/middleware/render.js`
  import 'isomorphic-fetch';
  import '../core/polyfills';
  import '../core/logger';
  import './assets/styles/index.scss';
  import {hydrate} from 'inferno-hydrate';
  import {createBrowserHistory} from 'history';
  import {App} from './components/App';
  
  // We render our react app into this element
  const root = document.getElementById('root');
  const history = createBrowserHistory();
  
  history.listen((location) => {
    window.ga('send', 'pageview', location.pathname);
  });
  
  /**
   * Render our component according to our routes
   */
  hydrate(<App history={history}/>, root);
  
  // cache all assets if browser supports serviceworker
  // if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
  //   const sw = navigator.serviceWorker;
  //
  //   sw.register('/offline.js').then(function() {
  //     console.debug('ServiceWorker: registered');
  //   }).catch(function(err) {
  //     console.error('ServiceWorker:', err);
  //   });
  //
  //   /*sw.register('/sw.js').then(function() {
  //       console.debug('CDN Worker: registered')
  //   }).catch(function(err) {
  //       console.error('ServiceWorker:', err)
  //   })*/
  //
  //   sw.ready.then(function() {
  //     console.debug('Worker: ready');
  //   });
  // }
  
  if (module.hot) {
    module.hot.accept();
  }
  
subject: update history import