refactor: simplified start command (#104)

This commit is contained in:
xw 2021-11-28 16:55:24 +08:00 committed by GitHub
parent 474196e587
commit 982e261984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 13 deletions

View File

@ -39,23 +39,13 @@ Markdown 文档自动即时渲染为微信图文,让你不再为微信文章
npm i
# 启动开发模式
npm run serve
npm start
# 输出部署版本
npm run build
```
## 测试
```sh
# 启动模拟服务
npm run mm
```
```sh
# 部署在 /md 目录
npm run build
# 访问 http://127.0.0.1:9000/md
# 部署在根目录
npm run build:h5-netlify
# 访问 http://127.0.0.1:9000/
```

View File

@ -3,6 +3,7 @@
"version": "1.5.6",
"private": false,
"scripts": {
"start": "run-p serve mm",
"serve": "vue-cli-service serve",
"build:h5-netlify": "cross-env SERVER_ENV=NETLIFY vue-cli-service build",
"build": "vue-cli-service build",
@ -42,6 +43,7 @@
"mini-types": "*",
"miniprogram-api-typings": "*",
"mockm": "^1.1.25",
"npm-run-all": "^4.1.5",
"postcss-comment": "^2.0.0",
"raw-loader": "^4.0.2",
"sass-loader": "^11.0.1",