From b1a039701cfd5c0071364b68e12e2d9a0c9a0e75 Mon Sep 17 00:00:00 2001 From: Andrey Okonetchnikov Date: Thu, 6 Oct 2016 16:11:11 +0200 Subject: [PATCH] Require utils.css in dev mode only --- src/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index e7c8ffe1..ba980758 100644 --- a/src/index.js +++ b/src/index.js @@ -1,12 +1,16 @@ import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; -import Root from './root'; -import registry from './lib/registry'; import 'file?name=index.html!../example/index.html'; import 'react-toolbox/lib/commons.scss'; +import Root from './root'; +import registry from './lib/registry'; import './index.css'; +if (process.env.NODE_ENV !== 'production') { + require('./utils.css'); // eslint-disable-line +} + // Create mount element dynamically const el = document.createElement('div'); el.id = 'root';