tmt-workflow 支持將編譯后的文件部署上 FTP,只需如下配置:
//ftp 配置
"ftp": {
"host": "xx.xx.xx.xx",
"port": "8021",
"user": "tmt",
"pass": "password",
"remotePath": "remotePath", //默認(rèn)上傳到根目錄下,配置此屬性可指定具體子目錄
"includeHtml": true //ftp 上傳是否包含 html
}
執(zhí)行 gulp ftp
即可。
更多建議: