@syyfe/webpack-tencentcloud-plugin
v1.0.0
Published
[A[Bwebpack-tencentcloud-plugin
Downloads
6
Readme
webpack-tencentcloud-plugin
介绍
项目打包完成后将打包产物上传至腾讯云(适用于 webpack 和项目)
配置参数
| 参数 | 介绍 | | --------- | -------------- | | SecretId | 密钥 id | | SecretKey | 密钥 | | Bucket | 桶名称 | | Region | 存储桶所在地域 | | remoteDir | 远程文件夹地址 |
安装
- npm 安装: npm install webpack-tencentcloud-plugin
使用方法
import TencentcloudPlugin from "webpack-tencentcloud-plugin";
const uploadOption = {
SecretId: '',
SecretKey: '',
Bucket: '',
Region: '',
bucketName: '',
remoteDir: ''
};
// webpack.config.js
module.exports = {
...,
plugins: [
...,
new UcloudPlugin(uploadOption)
]
}