-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# STATIC-UPLOAD | ||
|
||
上传静态资源到服务器,目前支持 aliyun oss。 | ||
|
||
## 安装 | ||
|
||
```bash | ||
$ pnpm global add @vingogo/static-upload | ||
``` | ||
|
||
## 配置文件 | ||
|
||
如果使用 OSS,则在项目根目录下创建 oss.config.js,配置上传基本信息: | ||
|
||
```javascript | ||
module.exports = { | ||
bucket: 'vingogo', | ||
region: 'oss-cn-guangzhou', | ||
directory: 'dist', | ||
prefix: `test` | ||
}; | ||
``` | ||
|
||
## 使用 | ||
|
||
```bash | ||
$ static-upload start | ||
``` |