Skip to content

A sub plug-in of flutter_web_optimizer,used to upload resources to cos

License

Notifications You must be signed in to change notification settings

Samuel-ML/flutter_web_cos_upload_plugin

 
 

Repository files navigation

A sub plug-in of flutter_web_optimizer,used to upload resources to cos

Features

upload flutter web build artifact to tencent cos,such as image,javascript file and etc

Getting started

dev_dependencies:
  flutter_web_cos_upload_plugin: ^1.0.0

Usage

flutter_web_cos_upload_plugin.yaml

cos:
  config:
    appId: 'xxx'
    secretId: 'xxx'
    secretKey: 'xxx'
  bucketName: 'xxx'
  region: 'xxx'
  1. copy flutter_web_cos_upload_plugin.yaml to your project root directory
  2. fill in the correct appId,secretId,secretKey,bucketName and region
  3. execute flutter pub run flutter_web_optimizer optimize --asset-base xxx --plugin flutter_web_cos_upload_plugin command
  4. then the resources will be uploaded to tencent cos

About

A sub plug-in of flutter_web_optimizer,used to upload resources to cos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 100.0%