0.3.0 • Published 6 years ago

@umu-team/webpack-bce-upload-plugin v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

@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'
    })
  ]
}