1.1.2 • Published 2 years ago
embroider-css-modules-temporary v1.1.2
embroider-css-modules-temporary
embroider-css-modules with renamed {{local-class}} helper
Why use this package?
Both ember-css-modules and embroider-css-modules provide a helper named {{local-class}} (with different signatures).
When you have a monorepo with many packages that depend on ember-css-modules, you will want to migrate code in increments. This addon provides {{local}} so that you don't run into a name collision.
In any template, you can mix code from ember-css-modules and embroider-css-modules-temporary.
{{! app/templates/application.hbs }}
<div local-class="container">
Hello world!
</div>
<div class={{local-class "container"}}>
Hello world!
</div>
<div class={{local this.styles "container-new"}}>
Hello world!
</div>Once the migration is complete:
- Replace
embroider-css-modules-temporarywithembroider-css-modules
API
Information about API and compatible versions can be found in embroider-css-modules.
Installation
ember install embroider-css-modules-temporaryContributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.