Socket
Book a DemoInstallSign in
Socket

7niu-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

7niu-webpack-plugin

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

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
8
Maintainers
1
Weekly downloads
 
Created
Source

七牛上传插件

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

Keywords

qiniu

FAQs

Package last updated on 11 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts