How can I debug a minified JS in firebug?

后端 未结 7 710
执念已碎
执念已碎 2020-12-23 09:25


I have a web page which includes insane amount of minified JS files. The web page works perfectly fine on my local network but throws some JS error on staging. There is

7条回答
  •  清酒与你
    2020-12-23 09:45

    1. Beautify your script
    2. Add the CDN host in /etc/hosts or your local DNS to resolve it to your own web server
    3. Host the beautified version and everything that you need on said web server
    4. Both Firefox and Chrome (versions as of this edit) support beautifying script with the {} button available in the inspector.

提交回复
热议问题