配置一个本地上线命令

1、在  D:\NewKuwolive-web\WebRoot\webpack\tasks下 添加localUpload.js

2、D:\NewKuwolive-web\WebRoot\webpack\package.json 修改package.js

"scripts": {
  "11": "gulp testUpload",
  "39": "gulp upload",
  "start": "webpack",
  "build": "npm run start && gulp build",
  "upload:bd": "npm run build && gulp localUpload",
  "upload:11": "npm run build && npm run 11",
  "upload:39": "npm run build && npm run 39"
},

添加 "upload:bd": "npm run build && gulp localUpload",

3、D:\NewKuwolive-web\WebRoot\webpack\README.md 修改README.md


### 上传本地
```
npm run upload:bd

  


上一篇:在.net core项目中,增加gulp打包任务


下一篇:gulp打包详解