Do source maps work for Chrome extensions?

后端 未结 4 652
一生所求
一生所求 2020-12-17 20:49

I\'m using the Closure compiler to create a Chrome extension and I\'d like to get source maps to work for debugging. I can get source maps to work just fine by pointing the

4条回答
  •  天涯浪人
    2020-12-17 21:21

    Chrome supports an extension source maps out of the box. No need to have them inline or adding these to web_accessible_resources in your manifest.json file.

    Mapped files are allocated under "Content scripts" tab within "Sources" tab under Developer Tools.

    There is a source code of all enabled extensions, plus webpack:// files (if source maps are created with Webpack).

    It's also possible to find mapped files using Cmd + P.

提交回复
热议问题