vite-plugin-ali-sourcemap
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

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(微信)

Package Sidebar

Install

npm i vite-plugin-ali-sourcemap

Weekly Downloads

5

Version

1.1.6

License

ISC

Unpacked Size

15.5 kB

Total Files

15

Last publish

Collaborators

  • lichenxia