ember-component-css icon indicating copy to clipboard operation
ember-component-css copied to clipboard

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

Open a1723 opened this issue 2 years ago • 0 comments

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"

a1723 avatar Nov 03 '23 14:11 a1723