webpack 插件,上传 sourcemap 文件
名称 | 类型 | 描述 | 默认值 |
---|---|---|---|
url | String | 文件上传接口地址 | - |
appname | String | 应用名称(需与注册sdk时的应用名称一致) | - |
errcode | String | 接口判断依据字段 | code |
errmsg | String | 接口错误信息字段 | msg |
import UploadSourceMapPlugin from "@heimdallr-sdk/webpack-plugin-sourcemap-upload";
const config = {
plugins: [
new UploadSourceMapPlugin({
appname: 'playgroundAPP',
url: `http://localhost:8888/sourcemap/upload`
})
]
}