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

Fix outbound requests from scoped CSS #24

Merged
merged 2 commits into from
Feb 1, 2024
Merged

Fix outbound requests from scoped CSS #24

merged 2 commits into from
Feb 1, 2024

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Feb 1, 2024

Outbound requests to other files like url() and @import in your CSS were not working before this PR because webpack did not understand the context of our virtual CSS files.

This fixes the context using the same technique as in https://github.com/embroider-build/embroider/blob/f361b719676788554b3a67da5cdb06f977b69b7c/packages/webpack/src/webpack-resolver-plugin.ts#L137-L140

ef4 added 2 commits February 1, 2024 13:01
Outbound requests to other files like `url()` and `@import` in your CSS were not working before this PR because webpack did not understand the context of our virtual CSS files.

This fixes the context using the same technique as in https://github.com/embroider-build/embroider/blob/f361b719676788554b3a67da5cdb06f977b69b7c/packages/webpack/src/webpack-resolver-plugin.ts#L137-L140
@ef4 ef4 merged commit 5833c2d into main Feb 1, 2024
10 checks passed
@delete-merged-branch delete-merged-branch bot deleted the imports-in-css branch February 1, 2024 18:15
@ef4 ef4 added the bug Something isn't working label Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant