# 7niu-webpack-plugin

> 基于 webpack 3.x 以上版本开发的七牛上传插件

Latest version **0.1.0** (published 2018-09-11) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install 7niu-webpack-plugin
pnpm add 7niu-webpack-plugin
yarn add 7niu-webpack-plugin
bun add 7niu-webpack-plugin
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-09-11 |
| First published | 2018-09-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0 |
| Dependencies | 4 |
| Unpacked size | 7.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | 郑贤森 |
| Maintainers | zhengxs |
| Keywords | qiniu, webpack4 |

## Links

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

## Dependencies (4)

- [ora](https://npm.io/package/ora.md) ^2.1.0
- [is_js](https://npm.io/package/is_js.md) ^0.9.0
- [qiniu](https://npm.io/package/qiniu.md) ^7.2.1
- [slash](https://npm.io/package/slash.md) ^2.0.0

## 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

- 0.1.0 (latest) — 2018-09-11

## README

# 七牛上传插件

[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![License](https://img.shields.io/npm/l/7niu-webpack-plugin.svg)](https://www.npmjs.com/package/7niu-webpack-plugin)
[![Downloads](https://img.shields.io/npm/dm/7niu-webpack-plugin.svg)](https://www.npmjs.com/package/7niu-webpack-plugin)

基于 webpack 3.x 新版 API 制作的七牛静态资源上传插件

## 环境要求

* node > 6.x
* webpack > 3.x

## 使用

```javascript
const Qiniu = require('7niu-webpack-plugin')

module.exports = {
   output:{
    // 用来和七牛的静态资源绑定的域名 
    publicPath:"https://attach.example.com/"
 },
  plugins: [
    new Qiniu({
      // 与七牛云设置一致
      accessKey: '<your access key>',
      secretKey: '<your secret key>',
      bucket: '<your bucket name>',
      // 存储的路径
      path: '<custom store path>',
      // 上传过滤用的属性，仅支持正则匹配
      include: /\.js/
      exclude: /\.html$/
    })
  ]
}
```

## 版权声明

`Qiniu` 是上海七牛信息技术有限公司的注册商标， `7niu-webpack-plugin` 是参考网上存在的相关插件修改的，非官方版 `webpack` 插件。

## 授权协议

MIT

[qiniu-webpack-plugin]: https://github.com/longtian/qiniu-webpack-plugin

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