Make entrypoint extremely small!
This commit is contained in:
parent
63b98bff4d
commit
e229c4e2f1
1 changed files with 2 additions and 1 deletions
|
@ -22,10 +22,11 @@ import './styles/application.scss';
|
||||||
import './styles/tailwind.css';
|
import './styles/tailwind.css';
|
||||||
|
|
||||||
import './precheck';
|
import './precheck';
|
||||||
import { default as Soapbox } from './containers/soapbox';
|
|
||||||
import ready from './ready';
|
import ready from './ready';
|
||||||
import { registerSW } from './utils/sw';
|
import { registerSW } from './utils/sw';
|
||||||
|
|
||||||
|
const Soapbox = React.lazy(() => import('./containers/soapbox'));
|
||||||
|
|
||||||
if (BuildConfig.NODE_ENV === 'production') {
|
if (BuildConfig.NODE_ENV === 'production') {
|
||||||
printConsoleWarning();
|
printConsoleWarning();
|
||||||
registerSW('/sw.js');
|
registerSW('/sw.js');
|
||||||
|
|
Loading…
Reference in a new issue