ok-papa-cli
基于 webpack 的前端多页面解决方案。在此cli的帮助下快速部署前端页面:可多个输出或每个页面独立输出,并且包含多个环境切换、适合多个环境的最佳配置输出、其他路径代理等功能。
Feature
Config
papa.config.json:
{
"ftp": {
"host": "192.168.1.1",
"port": "",
"user": "user",
"password": "ps"
},
"remoteBasePath": "",
"remotePath": "/activity/{$target}",
"localAssetPath": "build/activity/{$target}",
"domainName": "http://m.okpapa.com",
"cdnDomain": "https://images.okpapa.com",
"proxyPort": 80,
"servePort": 3005,
"staticFileConcatOrder":[]
}
Todo
万事开头难,然后中间难,最后结尾难
- write test
- 拆解各种配置:
- webpack.config
- webpack 热替换
- upload 功能没测