diff --git a/app/containers/LocationTablePage/index.js b/app/containers/LocationTablePage/index.js index c190bdb..33f4618 100644 --- a/app/containers/LocationTablePage/index.js +++ b/app/containers/LocationTablePage/index.js @@ -5,11 +5,13 @@ * */ -import React from 'react'; +import React, { lazy, Suspense } from 'react'; import Grid from '@material-ui/core/Grid'; +import CircularProgress from '@material-ui/core/CircularProgress'; import { FormattedMessage } from 'react-intl'; -import LocationTable from '../../components/LocationTable'; + import messages from './messages'; +const LocationTable = lazy(() => import('../../components/LocationTable')); export default function LocationTablePage() { return ( @@ -22,7 +24,9 @@ export default function LocationTablePage() {

- + }> + + ); } diff --git a/internals/scripts/analyze.js b/internals/scripts/analyze.js index a850c0b..adbd711 100644 --- a/internals/scripts/analyze.js +++ b/internals/scripts/analyze.js @@ -9,7 +9,7 @@ const progress = animateProgress('Generating stats'); // Generate stats.json file with webpack shelljs.exec( - 'webpack --config internals/webpack/webpack.prod.babel.js --profile --json > stats.json', + 'cross-env NODE_ENV=production webpack --config internals/webpack/webpack.prod.babel.js --json > stats.json', addCheckMark.bind(null, callback), // Output a checkmark on completion );