首页 > 其他 > 详细

配置一个本地上线命令

时间:2020-09-27 17:04:09      阅读:31      评论:0      收藏:0      [点我收藏+]

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

  

配置一个本地上线命令

原文:https://www.cnblogs.com/wangwei07/p/13740286.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!