@umu-team/webpack-bce-upload-plugin
v0.3.0
Published
umu baidu bce upload webpack plugin
Downloads
3
Readme
@umu-team/webpack-bce-upload-plugin
umu baidu bce upload webpack plugin
Install
npm i -D @umu-team/webpack-bce-upload-plugin
Options
distFolder
file pathcache
avoid duplicate uploadingbucket
bucket to upload toendpoint
the domain to upload toak
ak valuesk
sk valueexclude
RegExp to exclude filesinclude
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'
})
]
}