Catalog npm
PACKAGE EXPLORERView in registry

7niu-webpack-plugin

npm

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

qiniuwebpack4
Versions collected1
Direct dependencies15From release 0.1.0
Last observed20 Oct, 21:10 UTC

README

Current package documentation

七牛上传插件

JavaScript Style Guide License Downloads

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

环境要求

  • node > 6.x
  • webpack > 3.x

使用

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.0Registry latest11 Sept 201815

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
zhengxs2018/7niu-webpack-plugin

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:10 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:b15edf6e1f02ad5d298e7d040829f9ec30a7f2aa11b812476ba3c2dbc9bafb3b