alioss-uploader-plugin
v1.1.0
Published
a plugin for upload static files to aliyun oss
Downloads
6
Readme
alioss-uploader-plugin
可将静态资源上传到阿里云OSS上的插件
Install
$ npm install alioss-uploader-plugin --save-dev
Useage
var AliOSSUploaderPlugin = require('alioss-uploader-plugin')
var webpackConfig = {
entry: 'index.js',
output: {
path: 'dist',
filename: 'index_bundle.js'
},
plugins: [new AliOSSUploaderPlugin({
buildPath:'your build path',
region: 'your region',
accessKeyId: 'your key',
accessKeySecret: 'your secret',
bucket: 'your bucket',
generateObjectPath: function(filename) {
return filename
},
})]
}