-
Notifications
You must be signed in to change notification settings - Fork 115
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
HTML class names are not processed in an addon #389
Comments
@kboucher TBH I would recommend not doing such switch. This addon is not future proof and won't work under Embroider. IMO |
I appreciate that feedback. I actually abandoned That said, this is the first time I've encountered CSS Modules and I absolutely loathe it. In fact, this migration is really about just excising CSS Modules from these projects. At the end of the day today I removed the "pod-styles" import and just implemented my own convention and got where I needed to be. I had hoped to migrate to |
@kboucher there is ember-cli-styles which is practically an updated version of |
@boris-petrov That's great! I was not aware of that. I will check it out. Thanks! |
I am having trouble converting a few related projects from
ember-css-modules
toember-component-css
. Specifically, I am unable to getember-component-css
to work with an addon using classic structure or pods structure with a/pods
path segment -- which is how the consuming app is configured and I want to avoid changing that if possible.The
ember-component-css
docs say:I have followed this exactly (although I think the default classic structure would put the template in the
templates/components
folder). -- I have tried both.While I am seeing the generated CSS as expected (with underscores and hash value added), the class name in the markup remain undecorated.
As the documentation suggested, I did add
"after": "ember-component-css"
to the"ember-addon"
block in the addon's package.json file, but that had no effect.Again, according to the documentation I should be able to make this work in an addon using classic structure. Not sure if I'm doing something incorrect, or the documentation needs to be updated.
If there is a way to configure this to work with pods structure in a
/pods
directory that would also work in this case.The text was updated successfully, but these errors were encountered: