@umu-team/webpack-bce-upload-plugin
v0.3.0
Published
umu baidu bce upload webpack plugin
Readme
@umu-team/webpack-bce-upload-plugin
umu baidu bce upload webpack plugin
Install
npm i -D @umu-team/webpack-bce-upload-pluginOptions
distFolderfile pathcacheavoid duplicate uploadingbucketbucket to upload toendpointthe domain to upload toakak valuesksk valueexcludeRegExp to exclude filesincludeRegExp 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'
})
]
}
