From e986b235a7dcf037cf7a2b0f095cf67219c8ab1e Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Thu, 5 Jan 2017 12:29:45 +0200 Subject: [PATCH] Change NPM scripts - `npm run dev` to start dev mode - `npm start` to build production bundle and start the node server => Default to production with `npm start` and be explicit when starting the dev server --- README.md | 5 ++--- package.json | 5 +++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2d8b3230..1158cd22 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,8 @@ ## Development - npm start + npm run dev ## Server - npm run build - node server/index.js + npm start diff --git a/package.json b/package.json index 1796358e..7bbdfe09 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,10 @@ "react-router": "4.0.0-alpha.6" }, "scripts": { - "start": "react-scripts start", + "dev": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test --env=jsdom", - "eject": "react-scripts eject" + "eject": "react-scripts eject", + "start": "npm run build&&node server/index.js" } }