Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do I need to do anything special to load just one of the default adapters? #197

Open
Rui-Santos opened this issue Apr 11, 2018 · 1 comment

Comments

@Rui-Santos
Copy link

I just wish to use the piwik adapter, but I'm thinking maybe it will install all of them in my ember app, which is a burden, installing things that aren't needed. Do I need to do something to avoid that, or just configuring the adapter I need will leave all the other adapters out?

Thank you! And sorry for the lame question. I'm not really a developer, so I really don't know much about how it all works.

@evansims
Copy link

If you're using the metricsAdapters configuration in your ember-cli project's environment.js file, then there's nothing more you need to do. It will only include the adapters you've defined. There won't be any extra overhead from unused adapters.

However, if you're lazy initializing, you'll want to include them specifically in your environment.js file to ensure they (and only they) get included. Like this:

'ember-metrics': {
   includeAdapters: ['google-analytics']
 },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants