A sub plug-in of flutter_web_optimizer,used to upload resources to cos
upload flutter web build artifact to tencent cos,such as image,javascript file and etc
dev_dependencies:
flutter_web_cos_upload_plugin: ^1.0.0
flutter_web_cos_upload_plugin.yaml
cos:
config:
appId: 'xxx'
secretId: 'xxx'
secretKey: 'xxx'
bucketName: 'xxx'
region: 'xxx'
- copy
flutter_web_cos_upload_plugin.yaml
to your project root directory - fill in the correct appId,secretId,secretKey,bucketName and region
- execute
flutter pub run flutter_web_optimizer optimize --asset-base xxx --plugin flutter_web_cos_upload_plugin
command - then the resources will be uploaded to tencent cos