
Security News
pnpm 10.12 Introduces Global Virtual Store and Expanded Version Catalogs
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
folder-upload-webpack-plugin
Advanced tools
Upload your folder to ssh sftp server after build, add support to 'webpack --watch'
Upload your folder to ftp/sftp server easier and faster
npm i -D folder-upload-webpack-plugin
add following code to your webpack config file.
const FolderUploadWebpackPlugin = require('folder-upload-webpack-plugin');
let webpackConfig = {
entry: 'index.js',
output: {
path: 'assets',
filename: 'index_bundle.js'
},
plugins: [
new FolderUploadWebpackPlugin({
confirmation: true,
server: {host: 'ip', port: '22', username: 'username', password: 'password'},
paths: () => {
let data = [];
data[path.resolve(__dirname, "build_/")] = path.join(".../build/");
return data;
},
clear: true,
logging: false,
})
]
}
Option Name | Usage | Type | Default Value |
---|---|---|---|
confirmation | show confirmation before upload | Boolean | false |
server | ssh config for options(or Array, to multiple servers) you can see docs | Object | {port:22} |
paths | function - return object {local: remote}, see path example | Function | (none) |
clear | optional clear server folder before upload | Boolean | true |
logging | optional show log | Boolean | false |
symlink | create local symlink, after upload | object | null |
Option Name | Usage | Type | Default Value |
---|---|---|---|
ssh | optional ssh class | Class | see code |
chmod | optional compress level | Octal | 0o644 |
before | optional array with command | Array | [] |
after | optional array with command | Array | [] |
for other options you can see https://github.com/mscdex/ssh2#client-methods
...
paths: () => {
let data = [];
data[path.resolve(__dirname, "build_/")] = path.join("...build/");
return data;
},...
- fix ts
- add after and before command
- replace paths. see Options
- remove pathsClear && remotePath
- change upload type
- init
FAQs
Upload your folder to ssh sftp server after build, add support to 'webpack --watch'
The npm package folder-upload-webpack-plugin receives a total of 0 weekly downloads. As such, folder-upload-webpack-plugin popularity was classified as not popular.
We found that folder-upload-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.