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

Usage in addons + Embroider build #296

Open
bartocc opened this issue Nov 18, 2022 · 0 comments
Open

Usage in addons + Embroider build #296

bartocc opened this issue Nov 18, 2022 · 0 comments

Comments

@bartocc
Copy link

bartocc commented Nov 18, 2022

Our app uses ember-cli-less, ember-css-modules and an in-repo addon my-ir-addon.

ember-css-modules is configured in my-ir-addon with:

options: {
  cssModules: {
    intermediateOutputPath: "my-ir-addon-modules.less",
    extension: "less"
  },
}

The file my-app/app/styles/app.less contains the line:
@import "../../addon-tree-output/my-ir-addon/__COMPILED_STYLES__/my-ir-addon-modules.less"

This import works under a classic build.
Under Embroider, this fails with the error:

'../../addon-tree-output/my-ir-addon/__COMPILED_STYLES__/my-ir-addon-modules.less' wasn't found.

I understand referencing the build dir addon-tree-output is not ideal, but this allowed us to create a single app.less file since ember-css-modules used in addons produces its output in the addon-tree-output directory.

What could I do to make this work under an Embroider build?

Thx

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