https://github.com/taosin/alioss-uploader-plugin
吾❤️有猛🐯,细嗅🌺
https://github.com/taosin/alioss-uploader-plugin
aliyun aliyun-oss plugins uploader webpack
Last synced: 5 months ago
JSON representation
吾❤️有猛🐯,细嗅🌺
- Host: GitHub
- URL: https://github.com/taosin/alioss-uploader-plugin
- Owner: taosin
- Created: 2018-11-30T09:15:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-25T12:36:18.000Z (almost 5 years ago)
- Last Synced: 2026-01-13T07:45:59.803Z (6 months ago)
- Topics: aliyun, aliyun-oss, plugins, uploader, webpack
- Language: JavaScript
- Homepage: https://www.iamtaoxin.com
- Size: 33.2 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# alioss-uploader-plugin
> 可将静态资源上传到阿里云OSS上的插件
## Install
```bash
$ npm install alioss-uploader-plugin --save-dev
```
## Useage
```js
var AliOSSUploaderPlugin = require('alioss-uploader-plugin')
new AliOSSUploaderPlugin(
{
buildPath: "your buildPath",
region: "oss-cn-region",
accessKeyId: "your accessKeyId",
accessKeySecret: "your accessKeySecret",
bucket: "your bucket",
deleteAll: true,
generateObjectPath: function (filename) {
return filename;
},
},
[]
).upload();
```