UNPKG

webpack-scp-plugin

Version:

Webpack Plugin to copy assets to remote machine using scp

23 lines (22 loc) 647 B
import { Config } from "node-ssh"; declare type ScpOptions = { /** path of directory to upload source map files from */ srcPath?: string; /** path of directory to upload source map to on the remote machine */ destPath: string; /** node ssh connect config opiotns */ connect: Config; }; declare class WebpackScpPlugin { private srcPath; private destPath; private connect; private sshConnection; constructor(options: ScpOptions); private validateOptions; private getConnection; private closeConnection; private uploadSourceMap; apply(compiler: any): void; } export = WebpackScpPlugin;