How do you protect your application models, logic in a JavaScript application?


Hi, I’m exploring ways to protect application models, logic in a JS application (EmberJS specifically). For us, its good enough if its just hard. Currently ember-inspector makes this too easy.

Does anyone have any experience with this, or with tools like JScrambler?

Is it possible to disabling Ember inspector for a specific app?

Perhaps to disable ember-inspector do something like this in app.js:

if (config.environment === 'development') {
    window.NO_EMBER_DEBUG = false;
} else {
    window.NO_EMBER_DEBUG = true;