I tried the sftp-webpack-plugin plug-in written by Chinese people on github, but its mechanism is somewhat different from what I wanted. For example, the folder I set to upload contains subfolders. It will automatically extract the files of subfolders and eventually upload them to all files. The original structure containing subfolders was destroyed.
Does anyone have any experience in this field?
Ask for advice ……
This task is not suitable for the webpack. Although the webpack cover covers some functions of gulp/grunt, don’t forget the name of the webpack. Its main function is still package, so upload it using gulp/grunt. As for the packaged task, you can use plugins such as gulp-webpack to call the webpack.
About uploading server, this plug-in can satisfy you