# upyun-webpack-plugin

> a webpack plugin of upyun

Latest version **1.0.0** (published 2019-06-19) · Anti 996 license · 0 weekly downloads

## Install

```sh
npm install upyun-webpack-plugin
pnpm add upyun-webpack-plugin
yarn add upyun-webpack-plugin
bun add upyun-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.0 |
| Published | 2019-06-19 |
| First published | 2019-06-19 |
| Weekly downloads | 0 |
| License | Anti 996 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | terenyeung@gmail.com |
| Maintainers | terenyeung |
| Keywords | upyun, webpack, plugin |

## Links

- npm: https://www.npmjs.com/package/upyun-webpack-plugin
- Repository: https://github.com/TerenYeung/upyun-webpack-plugin
- Homepage: https://github.com/TerenYeung/upyun-webpack-plugin#readme
- Issues: https://github.com/TerenYeung/upyun-webpack-plugin/issues
- npm.io page: https://npm.io/package/upyun-webpack-plugin

## Dependencies (1)

- [upyun-js](https://npm.io/package/upyun-js.md) ^1.0.2

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-06-19

## README

![npm](https://img.shields.io/npm/dw/upyun-webpack-plugin.svg)
![license](https://img.shields.io/badge/license-Anti%20996-99ccff.svg)

<div align="center">
  <a href="https://github.com/webpack/webpack">
    <img width="200" height="200"
      src="https://webpack.js.org/assets/icon-square-big.svg">
  </a>

  <h1>Upyun Webpack Plugin</h1>
  <p>A webpack plugin of upyun</p></div>

<h2 align="center">Install</h2>

```bash
  npm i --save-dev upyun-webpack-plugin
```

This is a [webpack](http://webpack.js.org/) plugin that integrates [upyun-js](https://github.com/TerenYeung/upyun-js) into webpack, which can implement automatic workflow for upyun file handling.

<h2 align="center">Usage</h2>

<p><strong>Upyun upload plugin</strong></p>

```js
const
  {UpyunUploadPlugin} = require('upyun-webpack-plugin');

module.exports = {
  entry: 'index.js',
  output: {
    path: __dirname + '/dist',
    filename: 'index_bundle.js'
  },
  plugins: [
    new UpyunUploadPlugin({
      serviceName: '<upyun service>',
      operatorName: '<upyun operatorname>',
      operatorPassword: '<upyun password>',
      remotePath: '<remote folder>',
      localPath: '<local folder or file>'
    }),
  ]
}
```

---

<p><strong>Upyun download plugin</strong></p>

```js
const
  {UpyunDownloadPlugin} = require('upyun-webpack-plugin');

module.exports = {
  entry: 'index.js',
  output: {
    path: __dirname + '/dist',
    filename: 'index_bundle.js'
  },
  plugins: [
    new UpyunDownloadPlugin({
      serviceName: '<upyun service>',
      operatorName: '<upyun operatorname>',
      operatorPassword: '<upyun password>',
      remotePath: '<remote folder>',
      localPath: '<local folder or file>'
    }),
  ]
}
```
---

<p><strong>Upyun remove file(s) plugin</strong></p>

```js
const
  {UpyunRmPlugin} = require('upyun-webpack-plugin');

module.exports = {
  entry: 'index.js',
  output: {
    path: __dirname + '/dist',
    filename: 'index_bundle.js'
  },
  plugins: [
    new UpyunRmPlugin({
      serviceName: '<upyun service>',
      operatorName: '<upyun operatorname>',
      operatorPassword: '<upyun password>',
      remotePath: '<remote folder>',
      localPath: '<local folder or file>'
    }),
  ]
}
```

---
<h2 align="center">Related</h2>

[upyun js sdk](https://github.com/upyun/node-sdk)

[upyun-js](https://github.com/TerenYeung/upyun-js)

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