-1

I understand that client side Meteor code gets loaded into the client's browser - so how can a user actually view the code that gets loaded?

Thanks!

1 Answer 1

1

With Chrome dev tools, you can see the files under sources:

enter image description here

In Firefox Developer it's under the Debugger tab

3
  • Slightly off topic, but is it particularly "safe" or "best practice" for users to be able to view all the client-side code like this?
    – Trung Tran
    Aug 7, 2015 at 15:37
  • Client side code is always available to the client, it has nothing to do with Meteor. The user's browser executes the javascript so it has to be available to him. Any code you don't want available to the client, surround with if (Meteor.isServer), or put in the server/ directory
    – Bennyz
    Aug 7, 2015 at 15:42
  • 1
    In production client-side code is both minified and uglified. All your files are also concatenated together. It's still readable but barely. Aug 7, 2015 at 22:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.