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

Generate modules on-the-fly? #225

Open
gossi opened this issue Mar 14, 2021 · 0 comments
Open

Generate modules on-the-fly? #225

gossi opened this issue Mar 14, 2021 · 0 comments

Comments

@gossi
Copy link

gossi commented Mar 14, 2021

I want to use css-modules for storybook, specifically writing stories with css-modules. Stories to look like that:

export const MyStory = () => ({
  template: hbs`<span local-class="foo"></span>`,
  context: { },
  styles: `
  .foo { ... }
  `
});

Basically, storybook hoists that code into a running ember server (and replaces the content of a (virtual) component. Given a "normal" build runs through broccoli and broccoli-css-modules I'm wondering if this is possible at all?

If so, what do I need to look at? Can you point me at the relevant APIs, so I can turn that into an addon myself?

Thanks

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

1 participant