Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't Edit Sources in Chrome Dev Tools

In DevTools, it seems that there are some javascript files that can be edited and others that are "locked," meaning I can't place my cursor inside the file or type anything. What is the reason for this and how can I actually edit these files?

like image 921
docta_faustus Avatar asked Feb 17 '15 20:02

docta_faustus


1 Answers

If the file has been prettified (i.e. de-minified) Chrome will not allow you to edit the file. Are you attempting to edit a prettified minified file? Also, javascript in an embedded in a PHP or HTML file will remain read-only.

like image 88
Tui Popenoe Avatar answered Sep 20 '22 07:09

Tui Popenoe