You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
560 B
44 lines
560 B
8 years ago
|
EDEX ReactJS
|
||
|
---
|
||
|
|
||
|
Setup
|
||
|
---
|
||
|
|
||
|
```
|
||
|
npm install
|
||
|
```
|
||
|
|
||
|
|
||
|
Usage
|
||
|
---
|
||
|
|
||
|
## Running in dev mode
|
||
|
|
||
|
`npm start`
|
||
|
|
||
|
Opens Application in browser [http://localhost:3000/]
|
||
|
|
||
|
|
||
|
## Build (production)
|
||
|
|
||
|
Build will be placed in the `build` folder.
|
||
|
|
||
|
```
|
||
|
npm run build
|
||
|
```
|
||
|
|
||
|
## Running in preview production mode
|
||
|
|
||
|
This command will start webpack dev server, but with `NODE_ENV` set to `production`.
|
||
|
Everything will be minified and served.
|
||
|
Hot reload will not work, so you need to refresh the page manually after changing the code.
|
||
|
|
||
|
```
|
||
|
npm run preview
|
||
|
```
|
||
|
|
||
|
## Linting
|
||
|
|
||
|
```
|
||
|
$ npm run lint
|