add some build optimizations

This commit is contained in:
Barry Gitarts 2019-01-31 16:39:06 -05:00
parent 99c9a4ee3b
commit 9a3eff3e7c
4 changed files with 1 additions and 4 deletions

View File

@ -36,6 +36,7 @@
"scripts": { "scripts": {
"start": "react-scripts start", "start": "react-scripts start",
"build": "react-scripts build", "build": "react-scripts build",
"build-opt": "react-scripts --max_old_space_size=4096 build",
"test": "react-scripts test", "test": "react-scripts test",
"eject": "react-scripts eject" "eject": "react-scripts eject"
}, },

View File

@ -1,7 +1,6 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import Home from './components/Home' import Home from './components/Home'
import logo from './logo.svg'; import logo from './logo.svg';
import './App.css';
class App extends Component { class App extends Component {
render() { render() {

View File

@ -16,8 +16,6 @@ import ChatHeader from './ChatHeader';
import Userlist from './Userlist'; import Userlist from './Userlist';
import { uploadFileAndSend } from '../utils/ipfs'; import { uploadFileAndSend } from '../utils/ipfs';
import 'emoji-mart/css/emoji-mart.css';
class WhoIsTyping extends PureComponent { class WhoIsTyping extends PureComponent {
whoIsTyping() { whoIsTyping() {

View File

@ -1,6 +1,5 @@
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import './index.css';
import App from './App'; import App from './App';
import * as serviceWorker from './serviceWorker'; import * as serviceWorker from './serviceWorker';