Skip to content

sunny19990108/vite-plugin-ali-sourcemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vite-plugin-ali-sourcemap

基于 https://next.api.aliyun.com/api/ARMS/2019-08-08/Upload?lang=TYPESCRIPT&params={} 自动上传 sourcemap 到 阿里 ARMS

抛出一个方法, 接收参数:config: ConfigType

// 其他选项去这个包 @alicloud/openapi-client,
type ClientConfigType = {
  accessKeyId: string; // https://usercenter.console.aliyun.com/
  accessKeySecret: string;
  regionId?: string; // 默认 cn-beijing
  [key: string]: any;
};
// 其他选项在@alicloud/arms20190808
type UploadDefaultConfigType = {
  pid: string; //应用ID
  [key: string]: any;
};

type ConfigType = {
  clientConfig: ClientConfigType;
  uploadDefaultConfig: UploadDefaultConfigType;
  maxRetryTimes?: number; //上传失败后重试次数,默认三次
  disabled?: boolean; // 是否上传, 默认是
  deleteSourceFile?: boolean; // 上传后是否删除源文件,默认是
  uploadPath?: string; // 要上传的文件相对目录,比如只上传dist > assets 下的文件,那就uploadPath 就传递 assets
};

注意文件大小, 太大了传不上去, 要分包

有问题联系:18332651783(微信)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published