Current collected state Current
Observed since 20 Oct, 21:10 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
基于 webpack 3.x 以上版本开发的七牛上传插件
基于 webpack 3.x 新版 API 制作的七牛静态资源上传插件
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
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0Registry latest | 11 Sept 2018 | 15 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 21:10 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:b15edf6e1f02ad5d298e7d040829f9ec30a7f2aa11b812476ba3c2dbc9bafb3b