sqhtiamo / webpack-sftp-client Goto Github PK
View Code? Open in Web Editor NEWA plugin for webpack as an sftp client
License: MIT License
A plugin for webpack as an sftp client
License: MIT License
如题: 上传完毕之后,无法自动退出进程.
new WebpackSftpClient({
port: '2222',
host: 'xxx',
username: 'xxx',
password: 'xxx',
path: './build/',
remotePath: '/public_html/react/',
// Show details of uploading for files
verbose: true
}),
Produces:
Transfer ./build/index.html => /public_html/react/index.html
Transfer ./build/main.7b35982842fa71b3c204.js => /public_html/react/main.7b35982842fa71b3c204.js/main.7b35982842fa71b3c204.js
C:\p\berton-react\node_modules\ssh2-streams\lib\sftp.js:878
throw new Error('handle is not a Buffer');
^
Error: handle is not a Buffer
at SFTPStream.writeData (C:\p\berton-react\node_modules\ssh2-streams\lib\sftp.js:878:11)
at SFTPWrapper.write (C:\p\berton-react\node_modules\ssh2\lib\SFTPWrapper.js:48:23)
at C:\p\berton-react\node_modules\scp2\lib\client.js:216:18
at FSReqWrap.wrapper [as oncomplete] (fs.js:681:17)
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\xxx\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v6.7.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: `cross-env NODE_ENV=production webpack --progress`
npm ERR! Exit status 1
Hi,
Webpack-sftp-client breaks the operation of webpack watch (webpack --watch)
Bye,
Richard
我想上传到CDN上,但是不想上传某个文件夹活着文件,如何配置,是否可以增加配置项配置
本地上传的路径path: '../dist/'总是出错,总是前面少一个路径地址
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.