Just like what the title says
Is there a way to hide my source files when deployed to browser?
For example my "imgs" folder in my game, I wouldn't want people to be able to download my sprites sheets when playing the game if possible, is there any way to hide them in the Sources tab of Chrome Developer Tools?
yes and no
ultimately every protection can be circumvented, and the browser need to have the files in cache to use them.
however you can make it more difficult to use them.
one of the better (but not good) option is to use the build-in encryption when deploying.
that encryption is very simple and can easily be broken with some effort, but it will take that additional effort.
that is because the encrypted files are no longer directly readable, which means someone has to download the encrypted files and decrypt them before they can be extracted.
combine that with other protections like the htaccess described above and people will have to work to get your ressources.
it's probably only an hour of work for someone who knows what he is doing, but better than nothing and it will prevent kiddies from extracting them.
Edit: ninja'd with a more complete answer; well played!
You know, there's actually an 'encrypt' option in the deployment menu. It doesn't hide your images, but the chances that somebody is dedicated enough to find and unencrypt them are pretty slim.
nothing can prevent that - nothing short of using a browser that does not have that ability, and on a web deployment the player chooses the browser, not you.