Skip to content
New issue

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

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

Already on GitHub? # to your account

Embroider: Exchange config between ember and webpack #41

Open
gossi opened this issue Jan 6, 2023 · 0 comments
Open

Embroider: Exchange config between ember and webpack #41

gossi opened this issue Jan 6, 2023 · 0 comments

Comments

@gossi
Copy link
Member

gossi commented Jan 6, 2023

Theemo is configured in ember-cli-build.js of your application:

const app = new EmberApp(defaults, {
  theemo: {
    defaultTheme: 'sample'
  }
});

this config needs to find its way into the TheemoService at run time, together with the detected themes. Currently the code for that lives in the lib source folder.

For information exchange, the contentFor() hook is used to aggregate the information and puts it as json into a <script> tag, which the the service is reading to receive the information.

The idea is to drop contentFor() hook and find a replacement. Ideas include:

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

No branches or pull requests

1 participant