业力支持源地图文件吗? [英] Does Karma support source map files?

查看:115
本文介绍了业力支持源地图文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将Karma配置为将源映射文件用于堆栈跟踪?我看到GitHub上的一些问题似乎已经解决了?但是,我找不到这样做的任何例子.

Is it possible to configure Karma to use source map files for stacktraces? I see that there are a few issues on GitHub which appear to have been closed? I can't however find any example of doing so.

如果支持,有人可以举例说明配置吗?

If this is supported can someone illustrate an example config?

推荐答案

在您的karma.config.js文件中添加

In your karma.config.js file add

config.set({
files: [{
        pattern: '**/*.js.map',
        included: false
      },
...
});

这对我有用,文件现在由业力提供.

This has worked for me, and files are now served by karma.

这篇关于业力支持源地图文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆