@umu-team/webpack-bce-upload-plugin

0.3.0 • Public • Published

@umu-team/webpack-bce-upload-plugin

umu baidu bce upload webpack plugin

npm package npm package

Install

npm i -D @umu-team/webpack-bce-upload-plugin

Options

  • distFolder file path
  • cache avoid duplicate uploading
  • bucket bucket to upload to
  • endpoint the domain to upload to
  • ak ak value
  • sk sk value
  • exclude RegExp to exclude files
  • include RegExp to include files

Usage

webpack config

webpack.config.js

const WebpackBceIploadPlugin = require('@umu-team/webpack-bce-upload-plugin')

module.exports = {
  entry: 'index.js',
  output: {
    path: __dirname + '/dist',
    filename: 'index_bundle.js'
  },
  plugins: [
    new WebpackBceIploadPlugin({
        endpoint: 'xxx'
        bucket: 'static',
        exclude: /\.DS_Store/
        ak: 'xxx',
        sk: 'xxx'
    })
  ]
}

Package Sidebar

Install

npm i @umu-team/webpack-bce-upload-plugin

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

8.54 kB

Total Files

7

Last publish

Collaborators

  • duanjun
  • librajt
  • wayou