Skip to content

Commit 4840df9

Browse files
author
xijing
committed
1
1 parent 8a34f38 commit 4840df9

File tree

2 files changed

+8
-31
lines changed

2 files changed

+8
-31
lines changed

README.md

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,11 @@
11
# vue-webpack
22

3-
> A Vue.js project
3+
> A vue based mobile website for deltafx35c.com
44
5-
## Build Setup
5+
## install
6+
cnpm i
67

7-
``` bash
8-
# install dependencies
9-
npm install
10-
11-
# serve with hot reload at localhost:8080
12-
npm run dev
13-
14-
# build for production with minification
15-
npm run build
16-
17-
# build for production and view the bundle analyzer report
18-
npm run build --report
19-
20-
# start api server for production by pm2
21-
npm run api
22-
23-
# start api server for development by nodemon
24-
npm run api-dev
25-
26-
# show pm2 list for production
27-
npm run api-list
28-
```
29-
30-
31-
For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
8+
## scripts
9+
- npm run dev _启动本地服务_
10+
- npm run build _构建项目_
11+
- npm run build --report _构建项目并生成报告_

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
"scripts": {
88
"dev": "node build/dev-server.js",
99
"start": "node build/dev-server.js",
10-
"build": "node build/build.js",
11-
"api-dev": "cross-env NODE_ENV=development nodemon ./apiServer.js",
12-
"api": "cross-env NODE_ENV=production pm2 start ./apiServer.js -i max",
13-
"api-list": "pm2 list"
10+
"build": "node build/build.js"
1411
},
1512
"dependencies": {
1613
"axios": "^0.16.1",

0 commit comments

Comments
 (0)