Skip to content

Commit

Permalink
chore: Modify scripts in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 2, 2020
1 parent bb50413 commit ecc4d3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ $ git merge upstream/master

```bash
$ npm install
$ npm run build #编译并起服务本地预览可以测试Ajax请求
$ npm run build
$ npm run watch:css
$ npm run watch:js
$ npm run server
```
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"watch:js": "onchange 'js/index.js' './data.json' -v -- npm run build:js",
"build:js": "npm run min:js && npm run min:data",
"min:js": "uglifyjs js/index.js -o js/index.min.js",
"min:data": "node js/build.json.js"
"min:data": "node js/build.json.js",
"server": "sgo"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit ecc4d3a

Please sign in to comment.