From 81a553f5a28d00807809f738064e32627f3d6863 Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Thu, 8 Feb 2018 19:16:47 +0100 Subject: [PATCH] UI updates and working build --- package.json | 2 + public/index.html | 2 +- public/manifest.json | 4 +- src/actions/actionTypes.js | 2 + src/components/PostForm.js | 72 ++++--- src/containers/PostEditor.js | 8 +- src/orbitdb/index.js | 20 +- src/reducers/boards.js | 14 +- src/sagas/boards.js | 4 +- src/sagas/posts.js | 2 + webpack.config.prod.js | 371 +++++++++++++++++++++++++++++++++++ 11 files changed, 465 insertions(+), 36 deletions(-) create mode 100644 webpack.config.prod.js diff --git a/package.json b/package.json index 51848b9..f5beaee 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,8 @@ "scripts": { "start": "react-scripts start", "build": "react-scripts build", + "prebuild": "cp webpack.config.prod.js node_modules/react-scripts/config", + "postbuild": "npx uglify-es build/static/js/main.*.js -o build/static/js/$(ls build/static/js | head -n 1)", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" }, diff --git a/public/index.html b/public/index.html index ed0ebaf..563493c 100644 --- a/public/index.html +++ b/public/index.html @@ -19,7 +19,7 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - React App + IPFS Boards