mirror of
https://github.com/QingdaoU/OnlineJudgeFE.git
synced 2024-12-27 15:01:52 +00:00
Update README.md
This commit is contained in:
parent
f092dcb5eb
commit
a0cc3f6efc
20
README.md
20
README.md
@ -20,15 +20,33 @@
|
||||
|
||||
Install nodejs **v8.12.0** first.
|
||||
|
||||
### Linux
|
||||
|
||||
```bash
|
||||
npm install
|
||||
# we use webpack DllReference to decrease the build time,
|
||||
# this command only needs execute once unless you upgrade the package in build/webpack.dll.conf.js
|
||||
NODE_ENV=development npm run build:dll
|
||||
export NODE_ENV=development
|
||||
npm run build:dll
|
||||
|
||||
# the dev-server will set proxy table to your backend
|
||||
export TARGET=http://Your-backend
|
||||
|
||||
# serve with hot reload at localhost:8080
|
||||
npm run dev
|
||||
```
|
||||
### Windows
|
||||
|
||||
```bash
|
||||
npm install
|
||||
# we use webpack DllReference to decrease the build time,
|
||||
# this command only needs execute once unless you upgrade the package in build/webpack.dll.conf.js
|
||||
set NODE_ENV=development
|
||||
npm run build:dll
|
||||
|
||||
# the dev-server will set proxy table to your backend
|
||||
set TARGET=http://Your-backend
|
||||
|
||||
# serve with hot reload at localhost:8080
|
||||
npm run dev
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user