cardstack / glimmer-scoped-css

MIT License
8 stars 0 forks source link

Fix outbound requests from scoped CSS #24

Closed ef4 closed 5 months ago

ef4 commented 5 months ago

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