Skip to content

ember-component-css in production env on ember 5.3.0 have no styleNamespace #390

Description

@a1723

When I am using ember-component-css addon in development env - everything works fine, I got class prefix in each style when i am using {{this.styleNamespace}}.

Example:

<div class='{{this.styleNamespace}}'> // <div class='hjsdf6_class-name-from-component'>
</div>

But when I am using my app with production env i get:

<div class='hjsdf6_ '>
</div>

In component.js:

import podNames from 'ember-component-css/pod-names'

  get styleNamespace() {
    return podNames['class-name-from-component']
  }

So, may be it is not a bug. May be it is a feature?...

ember-component-css: "^0.8.1",
"ember-cli": "~5.3.0"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions