blob: 1dc76021688bf9e8ba091bea806133098312a195 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Import polyfills first
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import FontFaceObserver from 'fontfaceobserver';
import 'sanitize.css/sanitize.css';
// Load the favicon and the .htaccess file
import '!file-loader?name=[name].[ext]!./images/favicon.ico';
import 'file-loader?name=[name].[ext]!./.htaccess'; // eslint-disable-line import/extensions
// Import root app
import App from './containers/App';
// Import CSS reset and Global Styles
import './global-styles';
// Observe loading of Overpass (to remove Overpass, remove the <link> tag in
// the index.html file and this observer)
const overpassObserver = new FontFaceObserver('Overpass Mono', {});
// When Overpass is loaded, add a font-family using Overpass to the body
overpassObserver.load().then(() => {
document.body.classList.add('fontLoaded');
});
// Create redux store with history
const MOUNT_NODE = document.getElementById('app');
const render = () => {
ReactDOM.render(
<App />,
MOUNT_NODE,
);
};
render();
|