Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
webpack-ssh-deploy-plugin
Advanced tools
Readme
A webpack plugin to deploy assets to remote server by scp.
# yarn
yarn add webpack-ssh-deploy-plugin -D
Add this plugin instance to your webpack config as follow:
import * as fs from 'fs'
import * as os from 'os'
import * as path from 'path'
import { WebpackSshDeployPlugin } from 'webpack-ssh-deploy-plugin'
export = {
plugins: [
new WebpackSshDeployPlugin({
root: '/home/work/www',
host: 'sandbox.example.com',
port: 22,
username: 'work',
privateKey: fs.readFileSync(path.join(os.homedir(), '.ssh/id_rsa')),
})
]
}
Options Schema:
interface WebpackSshDeployPluginOptions {
root: string;
sock: stream.Duplex;
proxy?: ssh2.ConnectConfig;
cache: RegExp;
host: string;
port?: number;
username: string;
privateKey: string;
}
If you want to let some assets just deploy once, set the cache
field
of option, which is used for match the asset path, if matched, will send
once.
nc
optionsIf you want to use proxy for access internal network by a jump machine,
set proxy
field as a ssh2.ConnectConfig
.
This plugin is use for development, just send assets to remote server.
FAQs
A webpack plugin for deploy assets to remote server over sftp
The npm package webpack-ssh-deploy-plugin receives a total of 79 weekly downloads. As such, webpack-ssh-deploy-plugin popularity was classified as not popular.
We found that webpack-ssh-deploy-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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.