mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
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
This commit is contained in:
parent
af2d9b8e21
commit
e986b235a7
2 changed files with 5 additions and 5 deletions
|
|
@ -8,9 +8,8 @@
|
|||
|
||||
## Development
|
||||
|
||||
npm start
|
||||
npm run dev
|
||||
|
||||
## Server
|
||||
|
||||
npm run build
|
||||
node server/index.js
|
||||
npm start
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue