# auto-upload-webpack-plugin

> This is webpack plugin to upload the static resource to server after webpack builded

Latest version **1.0.5** (published 2019-12-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install auto-upload-webpack-plugin
pnpm add auto-upload-webpack-plugin
yarn add auto-upload-webpack-plugin
bun add auto-upload-webpack-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-12-01 |
| First published | 2019-11-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 151.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | quanlincong |

## Links

- npm: https://www.npmjs.com/package/auto-upload-webpack-plugin
- npm.io page: https://npm.io/package/auto-upload-webpack-plugin

## Dependencies (1)

- [ssh2-sftp-client](https://npm.io/package/ssh2-sftp-client.md) ^4.3.0

## Recent versions

- 1.0.5 (latest) — 2019-12-01
- 1.0.3 — 2019-12-01
- 1.0.2 — 2019-11-30
- 1.0.0 — 2019-11-30

## README

# AutoUploadWebpackPlugin

This is webpack plugin to upload the static resource to server after webpack builded

## install

step 1:

```
npm install auto-upload-webpack-plugin

// or
yarn add auto-upload-webpack-plugin
```

step 2:

```
// webpack.config.js
plugins: [
  new AutoUploadWebpackPlugin({
    host: 'localhost',
    user: 'xxxxx',
    password: 'xxxxxx',
    remoteDir: '/usr/share/nginx/share/xxxx',
    localDir: '/.../dist',
  })
]
```

## usage

```
let AutoUploadWebpackPlugin = require("AutoUploadWebpackPlugin");
new AutoUploadWebpackPlugin({
  // follow is required
  host:"127.0.0.1",
  user:"root",
  password:"******",
  localDir:"/admin/local/localDir",
  remoteDir:"/usr/root/remoteDir",
  include:[] //  String or Array, dir or files include, default *
  exclude:[],//  String or Array,dir or files include, default none
});
```

## property

- `localDir`, resource directory in local, absolute path
- `remoteDir`, upload server directory , absolute path
- `include`, default [\.*], Array, RegExp is valid,
- `exclude`, default null, Array, RegExp is valid,

---
_Source: https://npm.io/package/auto-upload-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
